mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
test: add known broken test for thread ordering from a loop
The previous loop handling code chooses the last message in the message list, which turns out to be the last in date order. See the comment in _notmuch_thread_create.
This commit is contained in:
parent
9293d6da27
commit
4e085b6d92
1 changed files with 10 additions and 0 deletions
|
@ -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 <<EOF > 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
|
||||
|
|
Loading…
Reference in a new issue