mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
lib: add known broken test for parsing bad dates.
This reproduces the symptoms of bug report id:20150422065630.6330.90536@hoothoot
This commit is contained in:
parent
f0d06c8ca3
commit
8e7812d824
1 changed files with 15 additions and 0 deletions
15
test/T660-bad-date.sh
Executable file
15
test/T660-bad-date.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
test_description="parsing of bad dates"
|
||||
. ./test-lib.sh || exit 1
|
||||
|
||||
add_message [date]='"()"'
|
||||
|
||||
test_begin_subtest 'Bad dates translate to a date after the Unix epoch'
|
||||
test_subtest_known_broken
|
||||
cat <<EOF >EXPECTED
|
||||
thread:0000000000000001 1970-01-01 [1/1] Notmuch Test Suite; Test message #1 (inbox unread)
|
||||
EOF
|
||||
notmuch search '*' > OUTPUT
|
||||
test_expect_equal_file EXPECTED OUTPUT
|
||||
|
||||
test_done
|
Loading…
Reference in a new issue