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 CC6406DE15DD for ; Fri, 17 Mar 2017 05:26:56 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5 tests=[AWL=0.006, 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 582md2GdzJe1 for ; Fri, 17 Mar 2017 05:26:56 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 349E96DE13AB for ; Fri, 17 Mar 2017 05:26:56 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1coqxP-0007xe-Ds; Fri, 17 Mar 2017 08:26:11 -0400 Received: (nullmailer pid 32227 invoked by uid 1000); Fri, 17 Mar 2017 12:26:51 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH] test: add known broken test for xapian wildcard search in from: Date: Fri, 17 Mar 2017 09:26:49 -0300 Message-Id: <20170317122649.32167-1-david@tethera.net> X-Mailer: git-send-email 2.11.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Fri, 17 Mar 2017 12:26:56 -0000 This was broken by the addition of regexp searching. The detection of wildcards is not currently done in the recursive call to parse_query, perhaps because of quoting issues. --- There should be a similar test for subject: but I wanted to report this bug now. test/T650-regexp-query.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/T650-regexp-query.sh b/test/T650-regexp-query.sh index df48ab82..4c3a562f 100755 --- a/test/T650-regexp-query.sh +++ b/test/T650-regexp-query.sh @@ -11,6 +11,11 @@ fi notmuch search --output=messages from:cworth > cworth.msg-ids +test_begin_subtest "xapian wildcard search for from:" +test_subtest_known_broken +notmuch search --output=messages 'from:cwo*' > OUTPUT +test_expect_equal_file cworth.msg-ids OUTPUT + test_begin_subtest "regexp from search, case sensitive" notmuch search --output=messages from:/carl/ > OUTPUT test_expect_equal_file /dev/null OUTPUT -- 2.11.0