mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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:
parent
215a8dc29c
commit
c7e18288ae
1 changed files with 4 additions and 1 deletions
|
@ -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*\"
|
||||||
|
|
Loading…
Reference in a new issue