From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 663C36DE0C6B for ; Sun, 9 Sep 2018 18:36:27 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.002 X-Spam-Level: X-Spam-Status: No, score=0.002 tagged_above=-999 required=5 tests=[AWL=0.013, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled 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 FE3qhlitEFoQ for ; Sun, 9 Sep 2018 18:36:26 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 5B2636DE0C66 for ; Sun, 9 Sep 2018 18:36:26 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1fzB7p-0001jV-Dd; Sun, 09 Sep 2018 21:36:25 -0400 Received: (nullmailer pid 11875 invoked by uid 1000); Mon, 10 Sep 2018 01:36:21 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 2/2] test: make regexp test conditional on field processors Date: Sun, 9 Sep 2018 22:36:17 -0300 Message-Id: <20180910013617.11764-3-david@tethera.net> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180910013617.11764-1-david@tethera.net> References: <20180910013617.11764-1-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2018 01:36:27 -0000 Normally we'd mark it broken, but perversely missing regexp support actually makes the test pass. --- test/T670-duplicate-mid.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/T670-duplicate-mid.sh b/test/T670-duplicate-mid.sh index bf8cc3a8..fd7df057 100755 --- a/test/T670-duplicate-mid.sh +++ b/test/T670-duplicate-mid.sh @@ -48,7 +48,11 @@ notmuch search --output=files subject:'"message 2"' | notmuch_dir_sanitize > OUT test_expect_equal_file EXPECTED OUTPUT test_begin_subtest 'Regexp search for second subject' -test_subtest_known_broken +# Note that missing field processor support really means the test +# doesn't make sense, but it happens to pass. +if [ $NOTMUCH_HAVE_XAPIAN_FIELD_PROCESSOR -eq 1 ]; then + test_subtest_known_broken +fi cat <EXPECTED MAIL_DIR/copy0 MAIL_DIR/copy1 -- 2.18.0