diff options
| author | David Bremner <david@tethera.net> | 2017-03-12 09:51:00 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-03-15 21:52:34 -0300 |
| commit | 8e7812d8243ed06fb4b2ff8f97598dbd1c139e0c (patch) | |
| tree | 808ab49450f9c14c9846be39f0fe13ecfc427382 | |
| parent | f0d06c8ca3fce15c9e264445485bd93a6de8d25e (diff) | |
lib: add known broken test for parsing bad dates.
This reproduces the symptoms of bug report
id:20150422065630.6330.90536@hoothoot
| -rwxr-xr-x | test/T660-bad-date.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/T660-bad-date.sh b/test/T660-bad-date.sh new file mode 100755 index 00000000..6463d5b8 --- /dev/null +++ b/test/T660-bad-date.sh @@ -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 |
