From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B2B68431FAE for ; Mon, 7 Oct 2013 15:34:12 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mk+11FrA4h5k for ; Mon, 7 Oct 2013 15:34:08 -0700 (PDT) Received: from dmz-mailsec-scanner-4.mit.edu (dmz-mailsec-scanner-4.mit.edu [18.9.25.15]) by olra.theworths.org (Postfix) with ESMTP id 77ECF431FD8 for ; Mon, 7 Oct 2013 15:33:37 -0700 (PDT) X-AuditID: 1209190f-b7fa08e0000009c6-a1-525336c18f2e Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id 8D.4B.02502.1C633525; Mon, 7 Oct 2013 18:33:37 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id r97MXPwh016712; Mon, 7 Oct 2013 18:33:26 -0400 Received: from drake.dyndns.org (26-4-172.dynamic.csail.mit.edu [18.26.4.172]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r97MXNE7028513 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Mon, 7 Oct 2013 18:33:25 -0400 Received: from amthrax by drake.dyndns.org with local (Exim 4.77) (envelope-from ) id 1VTJMh-0006c7-OT; Mon, 07 Oct 2013 18:33:23 -0400 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 10/11] emacs: Add known-broken tests for search tagging races Date: Mon, 7 Oct 2013 18:33:20 -0400 Message-Id: <1381185201-25197-11-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1381185201-25197-1-git-send-email-amdragon@mit.edu> References: <1381185201-25197-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsUixG6nonvQLDjI4PpVVovrN2cyOzB6PFt1 izmAMYrLJiU1J7MstUjfLoEro+tYScE3noqDZ5cxNjD+5+pi5OSQEDCRWDrxPCOELSZx4d56 ti5GLg4hgX2MEss/7WaGcDYwSqyf3MQK4Rxmknjx5TlUZi6jxMFnPSwg/WwCGhLb9i8HmyUi IC2x8+5soA4ODmYBNYk/XSogYWEBX4mW05dZQWwWAVWJxcvusIPYvAKOElt2N7NCnKEksfDU NjCbEyi+ZONFNhBbSMBBYu7+RawTGPkXMDKsYpRNya3SzU3MzClOTdYtTk7My0st0jXRy80s 0UtNKd3ECAoaTkn+HYzfDiodYhTgYFTi4c04GhQkxJpYVlyZe4hRkoNJSZT3jGlwkBBfUn5K ZUZicUZ8UWlOavEhRgkOZiURXgEjoBxvSmJlVWpRPkxKmoNFSZz3Jod9kJBAemJJanZqakFq EUxWhoNDSYI3DGSoYFFqempFWmZOCUKaiYMTZDgP0PBkkBre4oLE3OLMdIj8KUZFKXHe2SAJ AZBERmkeXC8sql8xigO9Isy7FaSKB5gQ4LpfAQ1mAhqsyx4IMrgkESEl1cDIyvLu4tQ3KxkN ruwLTrBRz1lvkrtq3nuv0IOzbx0RqPm9wDGFZV1FbkllnMpUH6PT/lmz1ziXbbJZ9mJG1UM/ qT23mIyd9X0mL2P0MN62db2j9V0eyaO3TWZ+v1TO1haltWV9/GUZOdsHkTUP9LwX3nS20boa GvUrqM8v+mD9yYCamze0vA4psRRnJBpqMRcVJwIA+d+PAcUCAAA= X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 22:34:13 -0000 These tests check that both thread-local and global search tagging operations are race-free. They are currently known-broken because they aren't race-free. --- test/emacs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/test/emacs b/test/emacs index 2917189..e0dcd3c 100755 --- a/test/emacs +++ b/test/emacs @@ -922,4 +922,30 @@ This is a warning (see *Notmuch errors* for more details) This is a warning This is another warning" +test_begin_subtest "Search thread tag operations are race-free" +test_subtest_known_broken +add_message '[subject]="Search race test"' +gen_msg_id_1=$gen_msg_id +generate_message '[in-reply-to]="<'$gen_msg_id_1'>"' \ + '[references]="<'$gen_msg_id_1'>"' \ + '[subject]="Search race test two"' +test_emacs '(notmuch-search "subject:\"search race test\"") + (notmuch-test-wait) + (notmuch-poll) + (execute-kbd-macro "+search-thread-race-tag")' +output=$(notmuch search --output=messages 'tag:search-thread-race-tag') +test_expect_equal "$output" "id:$gen_msg_id_1" + +test_begin_subtest "Search global tag operations are race-free" +test_subtest_known_broken +generate_message '[in-reply-to]="<'$gen_msg_id_1'>"' \ + '[references]="<'$gen_msg_id_1'>"' \ + '[subject]="Re: Search race test"' +test_emacs '(notmuch-search "subject:\"search race test\" -subject:two") + (notmuch-test-wait) + (notmuch-poll) + (execute-kbd-macro "*+search-global-race-tag")' +output=$(notmuch search --output=messages 'tag:search-global-race-tag') +test_expect_equal "$output" "id:$gen_msg_id_1" + test_done -- 1.8.4.rc3