]> git.notmuchmail.org Git - notmuch/blobdiff - test/T465-emacs-unthreaded.sh
test/emacs: tests for notmuch-{tree,unthreaded} with bad CWD
[notmuch] / test / T465-emacs-unthreaded.sh
index 1f386bf3784f51cd3fd95c7696af9102326b3ac1..e7bc1439c50dc66632d5b3f905c55a5a59f9335b 100755 (executable)
@@ -51,4 +51,10 @@ test_emacs '
 '
 test_expect_equal_file $EXPECTED/result-format-function OUTPUT
 
+test_begin_subtest "notmuch-unthreaded with nonexistent CWD"
+test_emacs '(test-log-error
+             (let ((default-directory "/nonexistent"))
+               (notmuch-unthreaded "*")))'
+test_expect_equal "$(cat MESSAGES)" "COMPLETE"
+
 test_done