-test_expect_equal_file OUTPUT EXPEXTED
-
-test_begin_subtest "Ensure that emacs doesn't drop error messages"
-test_emacs '(notmuch-search "--this-option-does-not-exist")
- (notmuch-test-wait)
- (test-output)'
-cat <<EOF >EXPEXTED
-Error: Unexpected output from notmuch search:
-Unrecognized option: --this-option-does-not-exist
-End of search results. (process returned 1)
-EOF
-test_expect_equal_file OUTPUT EXPEXTED