X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT050-new.sh;h=320a76460c213a8a675f1888c61520b4a1ca02ec;hb=4e085b6d92909b8f6d4a4b18ccd97fac8b7df620;hp=f3bfe7b159ab042d163dd1f22447948de4aafb14;hpb=9293d6da27494d7b607c945c6678bc890749b94f;p=notmuch diff --git a/test/T050-new.sh b/test/T050-new.sh index f3bfe7b1..320a7646 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -358,4 +358,14 @@ add_email_corpus broken test_begin_subtest "reference loop does not crash" test_expect_code 0 "notmuch show --format=json id:mid-loop-12@example.org id:mid-loop-21@example.org > OUTPUT" +test_begin_subtest "reference loop ordered by date" +test_subtest_known_broken +threadid=$(notmuch search --output=threads id:mid-loop-12@example.org) +notmuch show --format=mbox $threadid | grep '^Date' > OUTPUT +cat < EXPECTED +Date: Thu, 16 Jun 2016 22:14:41 -0400 +Date: Fri, 17 Jun 2016 22:14:41 -0400 +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done