From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sEFkMRpk815CPQAA0tVLHw (envelope-from ) for ; Wed, 24 Jun 2020 14:32:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YG8/LRpk815YEAAA1q6Kng (envelope-from ) for ; Wed, 24 Jun 2020 14:32:58 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6D10A9404C3 for ; Wed, 24 Jun 2020 14:32:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id A6B666DE13F8; Wed, 24 Jun 2020 07:32:49 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wQ7KoVXkUi0t; Wed, 24 Jun 2020 07:32:49 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 5ED886DE13DE; Wed, 24 Jun 2020 07:32:47 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 590C06DE0F9A for ; Wed, 24 Jun 2020 07:32:45 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PAfDmCdZBEEB for ; Wed, 24 Jun 2020 07:32:43 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTP id 448E76DE102B for ; Wed, 24 Jun 2020 07:32:43 -0700 (PDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id F033D613AF; Wed, 24 Jun 2020 10:32:42 -0400 (EDT) Received: (nullmailer pid 540580 invoked by uid 1000); Wed, 24 Jun 2020 14:32:41 -0000 From: David Bremner To: David Bremner , notmuch@notmuchmail.org Subject: [PATCH 2/2] test: mark two tests broken on machines with 32 bit time_t Date: Wed, 24 Jun 2020 11:32:34 -0300 Message-Id: <20200624143234.540526-2-david@tethera.net> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200624143234.540526-1-david@tethera.net> References: <87lfkcocvi.fsf@tethera.net> <20200624143234.540526-1-david@tethera.net> MIME-Version: 1.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: -0.01 X-TUID: TuQ3W+tKg9Iz I haven't traced the code path as exhaustively for the SMIME test, but the expiry date in question is larger then representable in a signed 32 bit integer. --- test/T160-json.sh | 3 +++ test/T355-smime.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/T160-json.sh b/test/T160-json.sh index d975efa7..e8b75605 100755 --- a/test/T160-json.sh +++ b/test/T160-json.sh @@ -65,6 +65,9 @@ test_expect_equal_json "$output" "[{\"thread\": \"XXX\", \"unread\"]}]" test_begin_subtest "Search message: json, 64-bit timestamp" +if [ $NOTMUCH_HAVE_64BIT_TIME_T -ne 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\"" output=$(notmuch search --format=json "json-search-64bit-timestamp-message" | notmuch_search_sanitize) test_expect_equal_json "$output" "[{\"thread\": \"XXX\", diff --git a/test/T355-smime.sh b/test/T355-smime.sh index 170f8649..f8cec62c 100755 --- a/test/T355-smime.sh +++ b/test/T355-smime.sh @@ -176,6 +176,9 @@ output=$(notmuch show --format=json id:smime-onepart-signed@protected-headers.ex test_valid_json "$output" test_begin_subtest "Verify signature on PKCS#7 SignedData message" +if [ $NOTMUCH_HAVE_64BIT_TIME_T -ne 1 ]; then + test_subtest_known_broken +fi output=$(notmuch show --format=json id:smime-onepart-signed@protected-headers.example) test_json_nodes <<<"$output" \ -- 2.27.0