aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-08-29 12:23:31 -0700
committerDavid Bremner <david@tethera.net>2021-09-11 10:22:24 -0300
commit88224bde6248ed03a1c548e437abb12caa382b79 (patch)
tree2896cb54502ba1ac0279905b80320d03d257945a /test
parent5e5f2122f91413e93761ca4a3d30b0b8b0d5e38e (diff)
test/emacs: test for notmuch-search with nonexistent CWD
(At least) notmuch-start-notmuch needs to be updated to set a safe working directory.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T310-emacs.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh
index 6c1e8979..21b73e5a 100755
--- a/test/T310-emacs.sh
+++ b/test/T310-emacs.sh
@@ -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