From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6COCJSQx+14MCQAA0tVLHw (envelope-from ) for ; Tue, 30 Jun 2020 12:33:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MN7kICQx+15ufQAAbx9fmQ (envelope-from ) for ; Tue, 30 Jun 2020 12:33:40 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0326A9400BB for ; Tue, 30 Jun 2020 12:33:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 6FEF76DE13EC; Tue, 30 Jun 2020 05:33:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kXliwAehhmY6; Tue, 30 Jun 2020 05:33:37 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id AB0FC6DE0F88; Tue, 30 Jun 2020 05:33:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 799596DE0F88 for ; Tue, 30 Jun 2020 05:33:35 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PHQm0iM_1sSQ for ; Tue, 30 Jun 2020 05:33:34 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTP id 4B4166DE0F76 for ; Tue, 30 Jun 2020 05:33:34 -0700 (PDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 03A5E6141D; Tue, 30 Jun 2020 08:33:33 -0400 (EDT) Received: (nullmailer pid 2275086 invoked by uid 1000); Tue, 30 Jun 2020 12:33:33 -0000 Resent-To: notmuch@notmuchmail.org Resent-From: David Bremner Resent-Date: Tue, 30 Jun 2020 09:33:33 -0300 Resent-Message-ID: <87o8p0ivhe.fsf@tethera.net> Received: by fethera.tethera.net (Postfix, from userid 1001) id A8C1B61433; Mon, 29 Jun 2020 21:14:35 -0400 (EDT) Received: (nullmailer pid 612644 invoked by uid 1000); Tue, 30 Jun 2020 01:14:18 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 3/4] test: add known broken test for n_m_get_thread_id on closed db Date: Mon, 29 Jun 2020 22:14:10 -0300 Message-Id: <20200630011411.612552-4-david@tethera.net> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200630011411.612552-1-david@tethera.net> References: <20200630011411.612552-1-david@tethera.net> MIME-Version: 1.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: -0.01 X-TUID: I+If8m8mqmF5 This will be fixed in the next commit. --- test/T560-lib-error.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index 5a5f66b8..b5600851 100755 --- a/test/T560-lib-error.sh +++ b/test/T560-lib-error.sh @@ -358,4 +358,22 @@ cat < EXPECTED EOF test_expect_equal_file EXPECTED OUTPUT +backup_database +test_begin_subtest "Handle getting thread-id from closed database" +test_subtest_known_broken +cat c_head2 - c_tail <<'EOF' | test_C ${MAIL_DIR} + { + const char *id2; + id2=notmuch_message_get_thread_id (message); + printf("%s\n%d\n", id, id2==NULL); + } +EOF +cat < EXPECTED +== stdout == +1258471718-6781-1-git-send-email-dottedmag@dottedmag.net +1 +== stderr == +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done -- 2.27.0