From fb54dee4ac1265b1cdf5b039e7c86a419decd04c Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 26 Jan 2011 15:19:31 +1000 Subject: Add test demonstrating a position overlap bug. Currently, whenever we call index_terms multiple times for a single field, the term generator is being reset to position 0 each time. This means that with text such as: To: a@b.c, x@y.z one can get a bogus match by searching for: To: a@y.c Thanks to Mark Anderson for reporting the bug, (and providing a nice, minimal test case that inspired what is used here). --- test/notmuch-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/notmuch-test') diff --git a/test/notmuch-test b/test/notmuch-test index fcf43a86..b2bfdff0 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -16,7 +16,7 @@ fi cd $(dirname "$0") -TESTS="basic new search search-output search-by-folder json thread-naming raw reply dump-restore uuencode thread-order author-order from-guessing long-id encoding emacs maildir-sync" +TESTS="basic new search search-output search-by-folder search-position-overlap-bug json thread-naming raw reply dump-restore uuencode thread-order author-order from-guessing long-id encoding emacs maildir-sync" # Clean up any results from a previous run rm -r test-results >/dev/null 2>/dev/null -- cgit v1.2.3