mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
test: add known broken test with timestamp beyond 2038
This commit is contained in:
parent
aba7fb375b
commit
e091427d98
1 changed files with 15 additions and 0 deletions
|
@ -64,6 +64,21 @@ test_expect_equal_json "$output" "[{\"thread\": \"XXX\",
|
||||||
\"tags\": [\"inbox\",
|
\"tags\": [\"inbox\",
|
||||||
\"unread\"]}]"
|
\"unread\"]}]"
|
||||||
|
|
||||||
|
test_begin_subtest "Search message: json, 64-bit timestamp"
|
||||||
|
test_subtest_known_broken
|
||||||
|
add_message "[subject]=\"json-search-64bit-timestamp-subject\"" "[date]=\"Tue, 01 Jan 2999 12:00:00 -0000\"" "[body]=\"json-search-64bit-timestamp-message\""
|
||||||
|
output=$(notmuch search --format=json "json-search-64bit-timestamp-message" | notmuch_search_sanitize)
|
||||||
|
test_expect_equal_json "$output" "[{\"thread\": \"XXX\",
|
||||||
|
\"timestamp\": 32472187200,
|
||||||
|
\"date_relative\": \"the future\",
|
||||||
|
\"matched\": 1,
|
||||||
|
\"total\": 1,
|
||||||
|
\"authors\": \"Notmuch Test Suite\",
|
||||||
|
\"subject\": \"json-search-64bit-timestamp-subject\",
|
||||||
|
\"query\": [\"id:$gen_msg_id\", null],
|
||||||
|
\"tags\": [\"inbox\",
|
||||||
|
\"unread\"]}]"
|
||||||
|
|
||||||
test_begin_subtest "Format version: too low"
|
test_begin_subtest "Format version: too low"
|
||||||
test_expect_code 20 "notmuch search --format-version=0 \\*"
|
test_expect_code 20 "notmuch search --format-version=0 \\*"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue