From: Austin Clements Date: Thu, 24 Oct 2013 15:19:04 +0000 (-0400) Subject: test: Fix missing erase-buffer in emacs test X-Git-Tag: 0.17_rc1~55 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=c7e18288ae677b50344aed7d8f1746d1c72a30c2 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. --- diff --git a/test/emacs b/test/emacs index 5bc3efcc..05295af8 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*\"