From 59528c86b501fcce94efb1021da5d768dea6f8e9 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 25 Oct 2013 11:19:10 +2000 Subject: [PATCH] [PATCH v2 10/11] emacs: Add known-broken tests for search tagging races --- 46/08aff503852bc275c9ae7a39a821075d8c3760 | 118 ++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 46/08aff503852bc275c9ae7a39a821075d8c3760 diff --git a/46/08aff503852bc275c9ae7a39a821075d8c3760 b/46/08aff503852bc275c9ae7a39a821075d8c3760 new file mode 100644 index 000000000..7dd0db0e8 --- /dev/null +++ b/46/08aff503852bc275c9ae7a39a821075d8c3760 @@ -0,0 +1,118 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id B4F1E421179 + for ; Thu, 24 Oct 2013 08:20:13 -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 j9WLKiMzRTSW for ; + Thu, 24 Oct 2013 08:20:11 -0700 (PDT) +Received: from dmz-mailsec-scanner-3.mit.edu (dmz-mailsec-scanner-3.mit.edu + [18.9.25.14]) + by olra.theworths.org (Postfix) with ESMTP id 2CB30429E5C + for ; Thu, 24 Oct 2013 08:19:31 -0700 (PDT) +X-AuditID: 1209190e-b7f828e0000009cf-ad-52693a82fed4 +Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) + by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP + id 23.F8.02511.28A39625; Thu, 24 Oct 2013 11:19:30 -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 r9OFJJft011807; + Thu, 24 Oct 2013 11:19:20 -0400 +Received: from drake.dyndns.org + (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com + [216.15.114.40]) (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r9OFJDiT012925 + (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); + Thu, 24 Oct 2013 11:19:19 -0400 +Received: from amthrax by drake.dyndns.org with local (Exim 4.77) + (envelope-from ) + id 1VZMgq-0006e7-TH; Thu, 24 Oct 2013 11:19:12 -0400 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: [PATCH v2 10/11] emacs: Add known-broken tests for search tagging + races +Date: Thu, 24 Oct 2013 11:19:10 -0400 +Message-Id: <1382627951-25252-11-git-send-email-amdragon@mit.edu> +X-Mailer: git-send-email 1.8.4.rc3 +In-Reply-To: <1382627951-25252-1-git-send-email-amdragon@mit.edu> +References: <1382627951-25252-1-git-send-email-amdragon@mit.edu> +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFjrKIsWRmVeSWpSXmKPExsUixG6nottklRlksKDB0KJpurPF6rk8Ftdv + zmR2YPbYOesuu8et+6/ZPZ6tusUcwBzFZZOSmpNZllqkb5fAldH/ehVjwTeeirenAhsY/3N1 + MXJySAiYSFycNY8NwhaTuHBvPZDNxSEksI9RYvuURYwQzkZGiUcTj7BCOHeYJNb190M5cxkl + Tjy7zQrSzyagIbFt/3JGEFtEQFpi593ZYHFmgWiJI5dngO0QFgiQuHLhDAuIzSKgKtHw5xET + iM0r4Chx4tc3Fog7lCQWntoG1ssJFP/5+hrYTCEBB4lfv8+wTGDkX8DIsIpRNiW3Sjc3MTOn + ODVZtzg5MS8vtUjXWC83s0QvNaV0EyMotDgl+XYwfj2odIhRgINRiYdX40N6kBBrYllxZe4h + RkkOJiVR3nummUFCfEn5KZUZicUZ8UWlOanFhxglOJiVRHin6QHleFMSK6tSi/JhUtIcLEri + vDc57IOEBNITS1KzU1MLUotgsjIcHEoSvJ2WQI2CRanpqRVpmTklCGkmDk6Q4TxAw9NBaniL + CxJzizPTIfKnGBWlxHmTQBICIImM0jy4Xljsv2IUB3pFmLccpIoHmDbgul8BDWYCGjxlSRrI + 4JJEhJRUA6PQmZbDD9mrP7Q+VjXeJNu29/Wvy6/duZ5KpSWtsnrqvXlK5rTYJz/ObZ9129hv + +YdzW96wLw2q2/glLnJZ/rXnM08HK7sLy287KfKpLubjNuaIBXbt597s3yW/6coRd/XJOst8 + 3Kec2HZ86uQpb2b/v33xdOWzgx7czrMi0oz8G90273Vna3WzV2Ipzkg01GIuKk4EADUIIw3Y AgAA +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: Thu, 24 Oct 2013 15:20:14 -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 5fbee12..7503e96 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 + -- 2.26.2