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