mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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.
This commit is contained in:
parent
bf84665cc0
commit
bc0c051e04
1 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue