[PATCH] test: add known broken test for xapian wildcard search in from:
David Bremner
david at tethera.net
Fri Mar 17 05:26:49 PDT 2017
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
More information about the notmuch
mailing list