unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [Patch v2 0/3] Add test and fix exclude bug
@ 2012-03-14 12:26 Mark Walters
  2012-03-14 12:26 ` [Patch v2 1/3] test: the test for the exclude code mistakenly excludes the tag "=" Mark Walters
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Mark Walters @ 2012-03-14 12:26 UTC (permalink / raw)
  To: notmuch

The test in the previous patches
id:"1331551914-28323-1-git-send-email-markwalters1009@gmail.com"
triggered the bug accidentally. It accidentally set the exclude tags
to be "=" and "deleted" rather than just "deleted". The non-existent
"=" tag (i.e., the tag that does not occur anywhere in the Xapian
database) triggered the bug. First we correct the tests to just set
the "deleted" tag, then we add some tests including one with a
deliberately non-existent tag. Finally, we modify the exclusion code
to avoid the bug.

The modification also appears to fix a similar problem for jrollins
that I have not yet been able to reproduce.

Since the code is now more clearly correct, cleaner and we do
definitely avoid a Xapian bug I think these patches can be committed
even without knowing why it fixed jrollins' bug.

Finally these apply to current master (not to the --with-excluded series).

Best wishes

Mark

Mark Walters (3):
  test: the test for the exclude code mistakenly excludes the tag "="
  test: add tests for message only search
  lib: fix an exclude bug

 lib/query.cc |    5 +++--
 test/count   |    2 +-
 test/search  |   19 ++++++++++++++++++-
 3 files changed, 22 insertions(+), 4 deletions(-)

-- 
1.7.9.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-18 12:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 12:26 [Patch v2 0/3] Add test and fix exclude bug Mark Walters
2012-03-14 12:26 ` [Patch v2 1/3] test: the test for the exclude code mistakenly excludes the tag "=" Mark Walters
2012-03-14 12:26 ` [Patch v2 2/3] test: add tests for message only search Mark Walters
2012-03-14 12:26 ` [Patch v2 3/3] lib: fix an exclude bug Mark Walters
2012-03-16  3:33 ` [Patch v2 0/3] Add test and fix " Austin Clements
2012-03-17  6:02 ` Jameson Graef Rollins
2012-03-18 12:43 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).