diff options
| author | David Bremner <david@tethera.net> | 2017-03-24 19:52:50 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-03-29 20:44:09 -0300 |
| commit | bc0c051e042650106c5772d1817af1f7db32fb92 (patch) | |
| tree | 3f6fe83b8a8fad307e3f21b06fa1a1742c56d56b /test | |
| parent | bf84665cc01b50ce80cf1df369db6a6c1ff523dd (diff) | |
test: add known broken test for null from: and subject: query
These queries currently fail with field processors enabled because the
code expects a non-empty string.
Diffstat (limited to 'test')
| -rwxr-xr-x | test/T650-regexp-query.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/T650-regexp-query.sh b/test/T650-regexp-query.sh index 61739e87..f2ae1387 100755 --- a/test/T650-regexp-query.sh +++ b/test/T650-regexp-query.sh @@ -11,6 +11,26 @@ fi notmuch search --output=messages from:cworth > cworth.msg-ids +# these headers will generate no document terms +add_message '[from]="-" [subject]="empty from"' +add_message '[subject]="-"' + +test_begin_subtest "null from: search" +test_subtest_known_broken +notmuch search 'from:""' | notmuch_search_sanitize > OUTPUT +cat <<EOF > EXPECTED +thread:XXX 2001-01-05 [1/1] -; empty from (inbox unread) +EOF +test_expect_equal_file EXPECTED OUTPUT + +test_begin_subtest "null subject: search" +test_subtest_known_broken +notmuch search 'subject:""' | notmuch_search_sanitize > OUTPUT +cat <<EOF > EXPECTED +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; - (inbox unread) +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "xapian wildcard search for from:" notmuch search --output=messages 'from:cwo*' > OUTPUT test_expect_equal_file cworth.msg-ids OUTPUT |
