From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id D70726DE0229 for ; Fri, 13 Apr 2018 18:46:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled 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 OoCp15ZbahQv for ; Fri, 13 Apr 2018 18:46:22 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 56A306DE022A for ; Fri, 13 Apr 2018 18:46:21 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1f7AGi-0008Id-I6; Fri, 13 Apr 2018 21:46:20 -0400 Received: (nullmailer pid 15511 invoked by uid 1000); Sat, 14 Apr 2018 01:46:17 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 4/5] test: add second reference loop test Date: Fri, 13 Apr 2018 22:46:09 -0300 Message-Id: <20180414014610.15438-5-david@tethera.net> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180414014610.15438-1-david@tethera.net> References: <20180414014610.15438-1-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2018 01:46:23 -0000 Guard against regressions where there is no crash, but output is wrong. --- test/T050-new.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/T050-new.sh b/test/T050-new.sh index 222c341e..91722e24 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -355,7 +355,16 @@ EOF test_expect_equal_file EXPECTED OUTPUT add_email_corpus broken -test_begin_subtest "reference loop" +test_begin_subtest "reference loop does not crash" test_expect_code 0 "notmuch show --format=json id:9379QM5Z39_5aa86b134fcfb_174033fc97a2cb98c7198d_sprut@zendesk.com > OUTPUT" +test_begin_subtest "reference loop outputs both messages" +threadid=$(notmuch search --output=threads id:9379QM5Z39_5aa86b134fcfb_174033fc97a2cb98c7198d_sprut@zendesk.com) +notmuch show --format=mbox $threadid | grep '^Message-ID' | sort > OUTPUT +cat < +Message-ID: <9379QM5Z39_5aa86b1350504_174eb3fc97a2cb98c71674_sprut@zendesk.com> +EOF +test_expect_equal_file /dev/null OUTPUT + test_done -- 2.17.0