[PATCH 3/4] test: add broken test for `notmuch-hello-mode-hook' called during update
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Sat, 17 Dec 2011 04:20:18 +0000 (08:20 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:58 +0000 (09:40 -0800)
97/dc8f3b2fc5935615e990a46f7c47b90ef6f457 [new file with mode: 0644]

diff --git a/97/dc8f3b2fc5935615e990a46f7c47b90ef6f457 b/97/dc8f3b2fc5935615e990a46f7c47b90ef6f457
new file mode 100644 (file)
index 0000000..7335b61
--- /dev/null
@@ -0,0 +1,88 @@
+Return-Path: <dmitry.kurochkin@gmail.com>\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 1DFFF431FD0\r
+       for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 20:21:08 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, 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 9okAJD2ozN9R for <notmuch@notmuchmail.org>;\r
+       Fri, 16 Dec 2011 20:21:07 -0800 (PST)\r
+Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 82C1B429E21\r
+       for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 20:21:04 -0800 (PST)\r
+Received: by mail-we0-f181.google.com with SMTP id m12so970080wer.26\r
+       for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 20:21:04 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=IsXUuhnc9Cuy7Rw1VvhwAufGrAETJBEQ0i4/5Ol9j5E=;\r
+       b=ZNurwYTBNtcqg1c8a9P4cRTucppBdkR70wfJeOv84IOzO1cs+WB//M3zRNnTj8RIJp\r
+       nFg6eHh4BNv6MqurzqErNKh+jWaGV/af99LXZSzlQsKGDsiIkESsPTJs6K6kB9QHCxql\r
+       Ze+VWBSdNn2OkhQZ8tN87Lxenh0z0MpooW6z8=\r
+Received: by 10.180.84.33 with SMTP id v1mr16384966wiy.4.1324095664165;\r
+       Fri, 16 Dec 2011 20:21:04 -0800 (PST)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id m5sm15833905wie.2.2011.12.16.20.21.03\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 16 Dec 2011 20:21:03 -0800 (PST)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 3/4] test: add broken test for `notmuch-hello-mode-hook'\r
+       called during update\r
+Date: Sat, 17 Dec 2011 08:20:18 +0400\r
+Message-Id: <1324095619-10870-3-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.7.3\r
+In-Reply-To: <1324095619-10870-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+References: <1324095619-10870-1-git-send-email-dmitry.kurochkin@gmail.com>\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: Sat, 17 Dec 2011 04:21:08 -0000\r
+\r
+Test that `notmuch-hello-mode-hook' is not called during\r
+`notmuch-hello' buffer updates.  The test is currently broken.\r
+---\r
+ test/emacs |   11 +++++++++++\r
+ 1 files changed, 11 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index a864ffa..b4c2444 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -485,4 +485,15 @@ counter=$(test_emacs \\r
+ )\r
+ test_expect_equal "$counter" 1\r
\r
++test_begin_subtest "notmuch-hello-mode hook is not called on updates"\r
++test_subtest_known_broken\r
++counter=$(test_emacs \\r
++    '(let ((notmuch-hello-mode-hook-counter 0))\r
++       (kill-buffer "*notmuch-hello*")\r
++       (notmuch-hello)\r
++       (notmuch-hello-update)\r
++       notmuch-hello-mode-hook-counter)'\r
++)\r
++test_expect_equal "$counter" 1\r
++\r
+ test_done\r
+-- \r
+1.7.7.3\r
+\r