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