This test is meant solely to make sure my next patch
doesn't break anything (in an obvious way, at least).
In other words: it does *not* demonstrate a race condition issue.
Signed-off-by: Pieter Praet <pieter at praet.org>
---
Robin,
Could you provide a test to expose the actual race condition?
Or at the very least something to mitigate my severe clue-deficiency?
Peace
test/emacs | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/test/emacs b/test/emacs
index 53f455a..ffe8a55 100755
--- a/test/emacs
+++ b/test/emacs
@@ -347,4 +347,23 @@ test_emacs '(notmuch-show
"id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae at mail.
(test-visible-output)'
test_expect_equal_file OUTPUT
$EXPECTED/notmuch-show-thread-with-hidden-messages
+test_begin_subtest "Add/remove tags from all matching messages."
+test_emacs '(notmuch-search "tag:inbox AND tags")
+ (notmuch-test-wait)
+ (notmuch-search-operate-all "+matching -inbox")
+ (notmuch-search "tag:matching")
+ (notmuch-test-wait)
+ (test-output)'
+cat <<EOF >EXPECTED
+ 2009-11-18 [3/3] Adrian Perez de Castro, Keith Packard, Carl Worth
[notmuch] Introducing myself (matching signed unread)
+ 2009-11-18 [1/3] Carl Worth, Israel Herraiz, Keith Packard [notmuch]
New to the list (inbox matching unread)
+ 2009-11-18 [2/2] Keith Packard, Carl Worth [notmuch] [PATCH] Make
notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (matching
unread)
+ 2009-11-18 [1/2] Keith Packard, Alexander Botero-Lowry [notmuch]
[PATCH] Create a default notmuch-show-hook that highlights URLs and uses
word-wrap (inbox matching unread)
+ 2009-11-18 [1/1] Jan Janak [notmuch] [PATCH] notmuch new:
Support for conversion of spool subdirectories into tags (matching unread)
+ 2009-11-18 [1/1] Stewart Smith [notmuch] [PATCH] Fix linking with
gcc to use g++ to link in C++ libs. (matching unread)
+ 2009-11-17 [1/2] Ingmar Vanhassel, Carl Worth [notmuch] [PATCH] Typsos
(inbox matching unread)
+End of search results.
+EOF
+test_expect_equal_file OUTPUT EXPECTED
+
test_done
--
1.7.4.1