]> git.notmuchmail.org Git - notmuch/commitdiff
test: add broken test for `notmuch-hello-mode-hook' called during update
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Sun, 18 Dec 2011 00:21:20 +0000 (04:21 +0400)
committerDavid Bremner <bremner@debian.org>
Tue, 20 Dec 2011 11:42:14 +0000 (07:42 -0400)
Test that `notmuch-hello-mode-hook' is not called during
`notmuch-hello' buffer updates.  The test is currently broken.

test/emacs

index a864ffa7a3856278154c3c8d393451b4a21ba96d..b4c24448f795133bdc884bd30bd65168b21e6854 100755 (executable)
@@ -485,4 +485,15 @@ counter=$(test_emacs \
 )
 test_expect_equal "$counter" 1
 
 )
 test_expect_equal "$counter" 1
 
+test_begin_subtest "notmuch-hello-mode hook is not called on updates"
+test_subtest_known_broken
+counter=$(test_emacs \
+    '(let ((notmuch-hello-mode-hook-counter 0))
+       (kill-buffer "*notmuch-hello*")
+       (notmuch-hello)
+       (notmuch-hello-update)
+       notmuch-hello-mode-hook-counter)'
+)
+test_expect_equal "$counter" 1
+
 test_done
 test_done