]> git.notmuchmail.org Git - notmuch/commitdiff
test/emacs: test for notmuch-search with nonexistent CWD
authorDavid Bremner <david@tethera.net>
Sun, 29 Aug 2021 19:23:31 +0000 (12:23 -0700)
committerDavid Bremner <david@tethera.net>
Sat, 11 Sep 2021 13:22:24 +0000 (10:22 -0300)
(At least) notmuch-start-notmuch needs to be updated to set a safe
working directory.

test/T310-emacs.sh

index 6c1e89799620e0d1d4c4a78619c155fe6d75b6d3..21b73e5a8f8ef321a312608766b75e2b65316262 100755 (executable)
@@ -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