test/emacs: test for notmuch-search with nonexistent CWD

(At least) notmuch-start-notmuch needs to be updated to set a safe
working directory.
This commit is contained in:
David Bremner 2021-08-29 12:23:31 -07:00
parent 5e5f2122f9
commit 88224bde62

View file

@ -1168,4 +1168,11 @@ This text added by the hook.
EOF
test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest "notmuch-search with nonexistent CWD"
test_subtest_known_broken
test_emacs '(test-log-error
(let ((default-directory "/nonexistent"))
(notmuch-search "*")))'
test_expect_equal "$(cat MESSAGES)" "COMPLETE"
test_done