X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT160-json.sh;fp=test%2FT160-json.sh;h=318c97880150d12dcb36f312c5794a04e3898af8;hb=1129cf890ef812321ac8296a4ca964a796df0b87;hp=4a797f6aad14dfe13c18c8a69d3eac617dcee80e;hpb=12aa05f07cb8aae736895c46fb25e0106daf207c;p=notmuch diff --git a/test/T160-json.sh b/test/T160-json.sh index 4a797f6a..318c9788 100755 --- a/test/T160-json.sh +++ b/test/T160-json.sh @@ -65,8 +65,9 @@ test_expect_equal_json "$output" "[{\"thread\": \"XXX\", \"tags\": [\"inbox\", \"unread\"]}]" +if [ -z "${NOTMUCH_TEST_INSTALLED-}" ]; then test_begin_subtest "Search message: json, 64-bit timestamp" -if [ $NOTMUCH_HAVE_64BIT_TIME_T -ne 1 ]; then +if [ "${NOTMUCH_HAVE_64BIT_TIME_T-0}" != "1" ]; then test_subtest_known_broken fi add_message "[subject]=\"json-search-64bit-timestamp-subject\"" "[date]=\"Tue, 01 Jan 2999 12:00:00 -0000\"" "[body]=\"json-search-64bit-timestamp-message\"" @@ -81,6 +82,7 @@ test_expect_equal_json "$output" "[{\"thread\": \"XXX\", \"query\": [\"id:$gen_msg_id\", null], \"tags\": [\"inbox\", \"unread\"]}]" +fi # NOTMUCH_TEST_INSTALLED undefined / empty test_begin_subtest "Format version: too low" test_expect_code 20 "notmuch search --format-version=0 \\*"