test: Fix missing erase-buffer in emacs test

The first subprocess error exit code test assumed the *Notmuch errors*
buffer would be empty.  Rather than assuming, make it so.
This commit is contained in:
Austin Clements 2013-10-24 11:19:04 -04:00 committed by David Bremner
parent 215a8dc29c
commit c7e18288ae

View file

@ -864,6 +864,8 @@ EOF
chmod a+x notmuch_fail chmod a+x notmuch_fail
test_emacs "(let ((notmuch-command \"$PWD/notmuch_fail\")) test_emacs "(let ((notmuch-command \"$PWD/notmuch_fail\"))
(with-current-buffer \"*Messages*\" (erase-buffer)) (with-current-buffer \"*Messages*\" (erase-buffer))
(with-current-buffer (get-buffer-create \"*Notmuch errors*\")
(erase-buffer))
(notmuch-search \"tag:inbox\") (notmuch-search \"tag:inbox\")
(notmuch-test-wait) (notmuch-test-wait)
(with-current-buffer \"*Messages*\" (with-current-buffer \"*Messages*\"
@ -893,7 +895,8 @@ EOF
chmod a+x notmuch_fail chmod a+x notmuch_fail
test_emacs "(let ((notmuch-command \"$PWD/notmuch_fail\")) test_emacs "(let ((notmuch-command \"$PWD/notmuch_fail\"))
(with-current-buffer \"*Messages*\" (erase-buffer)) (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-search \"tag:inbox\")
(notmuch-test-wait) (notmuch-test-wait)
(with-current-buffer \"*Messages*\" (with-current-buffer \"*Messages*\"