From: Pieter Praet <pieter@praet.org>
To: Carl Worth <cworth@cworth.org>,
Mark Anderson <ma.skies@gmail.com>,
Robin Green <greenrd@greenrd.org>
Cc: notmuch@notmuchmail.org
Subject: [PATCH 1/2] test: add/remove tags from all matching messages with `notmuch-search-operate-all'
Date: Thu, 30 Jun 2011 18:08:27 +0200 [thread overview]
Message-ID: <1309450108-2793-1-git-send-email-pieter@praet.org> (raw)
In-Reply-To: <8739itagad.fsf@yoom.home.cworth.org>
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@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@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
next prev parent reply other threads:[~2011-06-30 16:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-25 22:18 Race condition for '*' command Robin Green
2011-06-25 23:57 ` Jameson Graef Rollins
2011-06-26 9:00 ` Robin Green
2011-06-28 6:49 ` Pieter Praet
2011-06-28 17:36 ` Mark Anderson
2011-06-28 19:48 ` Carl Worth
2011-06-30 16:08 ` Pieter Praet [this message]
2011-06-30 16:08 ` [PATCH 2/2] [RFC] possible solution for "Race condition for '*' command" Pieter Praet
2011-06-30 19:38 ` Pieter Praet
2011-07-01 14:55 ` Austin Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1309450108-2793-1-git-send-email-pieter@praet.org \
--to=pieter@praet.org \
--cc=cworth@cworth.org \
--cc=greenrd@greenrd.org \
--cc=ma.skies@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).