X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Femacs;h=05295af8afc3f2e90887cb1a4ce85581f0a0a382;hb=c7e18288ae677b50344aed7d8f1746d1c72a30c2;hp=e3cf4690cee4a82b5eca1c0608d091bf9c5a9e04;hpb=08fde50bf3a4c54f6413aff4052e0d84392463f9;p=notmuch diff --git a/test/emacs b/test/emacs index e3cf4690..05295af8 100755 --- a/test/emacs +++ b/test/emacs @@ -858,12 +858,14 @@ test_expect_success "Rendering HTML mail with images" \ test_begin_subtest "Search handles subprocess error exit codes" cat > notmuch_fail < notmuch_fail <&2 echo This is another warning >&2 exit 0 @@ -895,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*\" @@ -905,8 +906,6 @@ test_emacs "(let ((notmuch-command \"$PWD/notmuch_fail\")) (test-output))" sed -i -e 's/^\[.*\]$/[XXX]/' ERROR test_expect_equal "$(cat OUTPUT; echo ---; cat MESSAGES; echo ---; cat ERROR)" "\ -Error: Unexpected output from notmuch search: -This is output End of search results. --- This is a warning (see *Notmuch errors* for more details)