[PATCH 04/11] test: Fix missing erase-buffer in emacs test
authorAustin Clements <amdragon@MIT.EDU>
Mon, 7 Oct 2013 22:33:14 +0000 (18:33 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:57:17 +0000 (09:57 -0800)
27/e43ad0efe26d9981379dbb7ef68c45e04fe727 [new file with mode: 0644]

diff --git a/27/e43ad0efe26d9981379dbb7ef68c45e04fe727 b/27/e43ad0efe26d9981379dbb7ef68c45e04fe727
new file mode 100644 (file)
index 0000000..019757f
--- /dev/null
@@ -0,0 +1,103 @@
+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 1FD15431FAF\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 nOvjdI0lBbpQ for <notmuch@notmuchmail.org>;\r
+       Mon,  7 Oct 2013 15:34:08 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu\r
+       [18.9.25.13])\r
+       by olra.theworths.org (Postfix) with ESMTP id 622B5431FD6\r
+       for <notmuch@notmuchmail.org>; Mon,  7 Oct 2013 15:33:37 -0700 (PDT)\r
+X-AuditID: 1209190d-b7f528e0000009b4-d1-525336c0adc6\r
+Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
+       by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 42.30.02484.0C633525; Mon,  7 Oct 2013 18:33:36 -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 r97MXQhb008285; \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 r97MXNcU028501\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-0006bn-Km; Mon, 07 Oct 2013 18:33:23 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 04/11] test: Fix missing erase-buffer in emacs test\r
+Date: Mon,  7 Oct 2013 18:33:14 -0400\r
+Message-Id: <1381185201-25197-5-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+NgFtrMIsWRmVeSWpSXmKPExsUixCmqrHvALDjIYNF+a4vrN2cyOzB6PFt1\r
+       izmAMYrLJiU1J7MstUjfLoEro2XqR+aC1ZwVr76+ZGxgnM3excjJISFgIrGiYysLhC0mceHe\r
+       erYuRi4OIYF9jBLfp59jgnA2MErMnXSfEcI5zCSx+X8TC4Qzl1HiRFsHWD+bgIbEtv3LGUFs\r
+       EQFpiZ13Z7N2MXJwMAuoSfzpUgEJCws4S0yasQxsNYuAqsSxtlusIDavgIPE6kkHoM5Qklh4\r
+       ahtYnFPAUWLJxotsILYQUM3c/YtYJzDyL2BkWMUom5JbpZubmJlTnJqsW5ycmJeXWqRrpJeb\r
+       WaKXmlK6iREcNpK8OxjfHVQ6xCjAwajEw5txNChIiDWxrLgy9xCjJAeTkijvGdPgICG+pPyU\r
+       yozE4oz4otKc1OJDjBIczEoivAJGQDnelMTKqtSifJiUNAeLkjjvTQ77ICGB9MSS1OzU1ILU\r
+       IpisDAeHkgRvGMhQwaLU9NSKtMycEoQ0EwcnyHAeoOELQGp4iwsSc4sz0yHypxgVpcR5Z4Mk\r
+       BEASGaV5cL2wuH7FKA70ijDvVpAqHmBKgOt+BTSYCWiwLnsgyOCSRISUVAPjPI9Fny8Xb+Fh\r
+       dFoXw5S4QSZRy2Kzwj7T8sav2Xe798/YUngl7nr2xyNzbp1eIRkowrqMReXAs2hRuelXtlik\r
+       Zv+obvA7IFYVsfS50zpVE4d/WSEy29QZs1s9Wj9ukdNqcLizQfC6w2ZVPdEPh9sXc5kyHGZt\r
+       MuoyCulnL2GQeDlb1XlDnY8SS3FGoqEWc1FxIgCUPgcjxgIAAA==\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:12 -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