[PATCH 10/11] emacs: Add known-broken tests for search tagging races
authorAustin Clements <amdragon@MIT.EDU>
Mon, 7 Oct 2013 22:33:20 +0000 (18:33 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:57:18 +0000 (09:57 -0800)
82/4195a9071722f019c85011d9ac317f76e6dfac [new file with mode: 0644]

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