[PATCH] test: do folder-based search with a single-term path after moving message

Pieter Praet pieter at praet.org
Fri May 13 01:06:57 PDT 2011


When moving mail to a different folder, there appear to be residual
incorrect "folder:" terms.

This test exposes an existing bug, so is currently failing.

Signed-off-by: Pieter Praet <pieter at praet.org>
---
 test/search-by-folder |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/test/search-by-folder b/test/search-by-folder
index 162158c..62767fb 100755
--- a/test/search-by-folder
+++ b/test/search-by-folder
@@ -35,6 +35,10 @@ notmuch new
 output=$(notmuch search folder:bad/news | notmuch_search_sanitize)
 test_expect_equal "$output" ""
 
+test_begin_subtest "After rename, old single-term path returns nothing"
+output=$(notmuch search folder:news | notmuch_search_sanitize)
+test_expect_equal_failure "$output" ""
+
 test_begin_subtest "After rename, new path returns result"
 output=$(notmuch search folder:bad/olds | notmuch_search_sanitize)
 test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Bears (inbox unread)"
-- 
1.7.4.1



More information about the notmuch mailing list