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 <<EOF +Message-ID: <9379QM5Z39_5aa86b134fcfb_174033fc97a2cb98c7198d_sprut@zendesk.com> +Message-ID: <9379QM5Z39_5aa86b1350504_174eb3fc97a2cb98c71674_sprut@zendesk.com> +EOF +test_expect_equal_file /dev/null OUTPUT + test_done -- 2.17.0 _______________________________________________ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch