[PATCH v2 04/11] test: Fix missing erase-buffer in emacs test
authorAustin Clements <amdragon@MIT.EDU>
Thu, 24 Oct 2013 15:19:04 +0000 (11:19 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:57:36 +0000 (09:57 -0800)
ca/aeb36e32e957a63d30404ce4c7c033ec4e94c0 [new file with mode: 0644]

diff --git a/ca/aeb36e32e957a63d30404ce4c7c033ec4e94c0 b/ca/aeb36e32e957a63d30404ce4c7c033ec4e94c0
new file mode 100644 (file)
index 0000000..fcc530c
--- /dev/null
@@ -0,0 +1,104 @@
+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 30456429E39\r
+       for <notmuch@notmuchmail.org>; Thu, 24 Oct 2013 08:19:24 -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 DCIjZiEg6h6s for <notmuch@notmuchmail.org>;\r
+       Thu, 24 Oct 2013 08:19:17 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-3.mit.edu (dmz-mailsec-scanner-3.mit.edu\r
+       [18.9.25.14])\r
+       by olra.theworths.org (Postfix) with ESMTP id BB862429E3C\r
+       for <notmuch@notmuchmail.org>; Thu, 24 Oct 2013 08:19:17 -0700 (PDT)\r
+X-AuditID: 1209190e-b7f828e0000009cf-57-52693a75b917\r
+Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
+       by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id FD.E8.02511.57A39625; Thu, 24 Oct 2013 11:19:17 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id r9OFJFpN012677; \r
+       Thu, 24 Oct 2013 11:19:15 -0400\r
+Received: from drake.dyndns.org\r
+       (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+       [216.15.114.40]) (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 r9OFJC3C012913\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Thu, 24 Oct 2013 11:19:14 -0400\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1VZMgq-0006dp-OH; Thu, 24 Oct 2013 11:19:12 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 04/11] test: Fix missing erase-buffer in emacs test\r
+Date: Thu, 24 Oct 2013 11:19:04 -0400\r
+Message-Id: <1382627951-25252-5-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.8.4.rc3\r
+In-Reply-To: <1382627951-25252-1-git-send-email-amdragon@mit.edu>\r
+References: <1382627951-25252-1-git-send-email-amdragon@mit.edu>\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFjrKIsWRmVeSWpSXmKPExsUixCmqrFtqlRlksGEet0XTdGeL1XN5LK7f\r
+       nMnswOyxc9Zddo9b91+zezxbdYs5gDmKyyYlNSezLLVI3y6BK6Nl6kfmgtWcFa++vmRsYJzN\r
+       3sXIySEhYCLxb/1FJghbTOLCvfVsXYxcHEIC+xglvl68B+VsZJR4+vktlHOHSaJ/0lVWCGcu\r
+       o8Tde/8YQfrZBDQktu1fDmaLCEhL7Lw7mxXEZhaIljhyeQZQNweHsICbxIN1NSBhFgFViWl9\r
+       j8HO4BVwkNgyqQfqJCWJhae2gbVyCjhK/Hx9DWykEFDNr99nWCYw8i9gZFjFKJuSW6Wbm5iZ\r
+       U5yarFucnJiXl1qka6yXm1mil5pSuokRHFqSfDsYvx5UOsQowMGoxMOr8SE9SIg1say4MvcQ\r
+       oyQHk5Io7z3TzCAhvqT8lMqMxOKM+KLSnNTiQ4wSHMxKIrzT9IByvCmJlVWpRfkwKWkOFiVx\r
+       3psc9kFCAumJJanZqakFqUUwWRkODiUJ3k5LoEbBotT01Iq0zJwShDQTByfIcB6g4ekgNbzF\r
+       BYm5xZnpEPlTjIpS4rxJIAkBkERGaR5cLyz2XzGKA70izFsOUsUDTBtw3a+ABjMBDZ6yJA1k\r
+       cEkiQkqqgTHu8aOYfVlWgryJu08mfZ9+nD88eStv413LJQalJxME33GYfwgXPaPKs21earfp\r
+       wfYTpZ/MqlsmeFhF+trWx0vPPKhWV/UrIWC1a6FE8pMW3iN7AhX8Jy6s+8miG5clsiRpgipn\r
+       dKeqTn7vlmKLEqGYVzz+ynO7+R//innlqOs4rYXx84EEJZbijERDLeai4kQAaCfbMNgCAAA=\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: Thu, 24 Oct 2013 15:19:24 -0000\r
+\r
+The first subprocess error exit code test assumed the *Notmuch errors*\r
+buffer would be empty.  Rather than assuming, make it so.\r
+---\r
+ test/emacs | 5 ++++-\r
+ 1 file changed, 4 insertions(+), 1 deletion(-)\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index 5bc3efc..05295af 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -864,6 +864,8 @@ EOF\r
+ chmod a+x notmuch_fail\r
+ test_emacs "(let ((notmuch-command \"$PWD/notmuch_fail\"))\r
+              (with-current-buffer \"*Messages*\" (erase-buffer))\r
++             (with-current-buffer (get-buffer-create \"*Notmuch errors*\")\r
++                 (erase-buffer))\r
+              (notmuch-search \"tag:inbox\")\r
+              (notmuch-test-wait)\r
+              (with-current-buffer \"*Messages*\"\r
+@@ -893,7 +895,8 @@ EOF\r
+ chmod a+x notmuch_fail\r
+ test_emacs "(let ((notmuch-command \"$PWD/notmuch_fail\"))\r
+              (with-current-buffer \"*Messages*\" (erase-buffer))\r
+-             (with-current-buffer \"*Notmuch errors*\" (erase-buffer))\r
++             (with-current-buffer (get-buffer-create \"*Notmuch errors*\")\r
++                 (erase-buffer))\r
+              (notmuch-search \"tag:inbox\")\r
+              (notmuch-test-wait)\r
+              (with-current-buffer \"*Messages*\"\r
+-- \r
+1.8.4.rc3\r
+\r