1 Return-Path: <pieter@praet.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 95DB942119B
\r
6 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 09:08:40 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id iIz9VdExPi62 for <notmuch@notmuchmail.org>;
\r
16 Thu, 30 Jun 2011 09:08:39 -0700 (PDT)
\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com
\r
18 [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id A7BF0421192
\r
21 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 09:08:39 -0700 (PDT)
\r
22 Received: by wyh22 with SMTP id 22so1843157wyh.26
\r
23 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 09:08:38 -0700 (PDT)
\r
24 Received: by 10.227.195.209 with SMTP id ed17mr2032628wbb.13.1309450118082;
\r
25 Thu, 30 Jun 2011 09:08:38 -0700 (PDT)
\r
26 Received: from localhost ([109.131.21.173])
\r
27 by mx.google.com with ESMTPS id fi5sm1729746wbb.56.2011.06.30.09.08.35
\r
28 (version=TLSv1/SSLv3 cipher=OTHER);
\r
29 Thu, 30 Jun 2011 09:08:36 -0700 (PDT)
\r
30 From: Pieter Praet <pieter@praet.org>
\r
31 To: Carl Worth <cworth@cworth.org>, Mark Anderson <ma.skies@gmail.com>,
\r
32 Robin Green <greenrd@greenrd.org>
\r
33 Subject: [PATCH 1/2] test: add/remove tags from all matching messages with
\r
34 `notmuch-search-operate-all'
\r
35 Date: Thu, 30 Jun 2011 18:08:27 +0200
\r
36 Message-Id: <1309450108-2793-1-git-send-email-pieter@praet.org>
\r
37 X-Mailer: git-send-email 1.7.4.1
\r
38 In-Reply-To: <8739itagad.fsf@yoom.home.cworth.org>
\r
39 References: <8739itagad.fsf@yoom.home.cworth.org>
\r
40 Cc: notmuch@notmuchmail.org
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Thu, 30 Jun 2011 16:08:40 -0000
\r
55 This test is meant solely to make sure my next patch
\r
56 doesn't break anything (in an obvious way, at least).
\r
58 In other words: it does *not* demonstrate a race condition issue.
\r
60 Signed-off-by: Pieter Praet <pieter@praet.org>
\r
65 Could you provide a test to expose the actual race condition?
\r
66 Or at the very least something to mitigate my severe clue-deficiency?
\r
70 test/emacs | 19 +++++++++++++++++++
\r
71 1 files changed, 19 insertions(+), 0 deletions(-)
\r
73 diff --git a/test/emacs b/test/emacs
\r
74 index 53f455a..ffe8a55 100755
\r
77 @@ -347,4 +347,23 @@ test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.
\r
78 (test-visible-output)'
\r
79 test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-with-hidden-messages
\r
81 +test_begin_subtest "Add/remove tags from all matching messages."
\r
82 +test_emacs '(notmuch-search "tag:inbox AND tags")
\r
83 + (notmuch-test-wait)
\r
84 + (notmuch-search-operate-all "+matching -inbox")
\r
85 + (notmuch-search "tag:matching")
\r
86 + (notmuch-test-wait)
\r
88 +cat <<EOF >EXPECTED
\r
89 + 2009-11-18 [3/3] Adrian Perez de Castro, Keith Packard, Carl Worth [notmuch] Introducing myself (matching signed unread)
\r
90 + 2009-11-18 [1/3] Carl Worth, Israel Herraiz, Keith Packard [notmuch] New to the list (inbox matching unread)
\r
91 + 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)
\r
92 + 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)
\r
93 + 2009-11-18 [1/1] Jan Janak [notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags (matching unread)
\r
94 + 2009-11-18 [1/1] Stewart Smith [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (matching unread)
\r
95 + 2009-11-17 [1/2] Ingmar Vanhassel, Carl Worth [notmuch] [PATCH] Typsos (inbox matching unread)
\r
96 +End of search results.
\r
98 +test_expect_equal_file OUTPUT EXPECTED
\r