]> git.notmuchmail.org Git - notmuch/commitdiff
test/emacs: tests for notmuch-{tree,unthreaded} with bad CWD
authorDavid Bremner <david@tethera.net>
Sun, 29 Aug 2021 19:23:35 +0000 (12:23 -0700)
committerDavid Bremner <david@tethera.net>
Sat, 11 Sep 2021 14:11:29 +0000 (11:11 -0300)
These work thanks to the previous wrapping of process creation
primitives.

test/T460-emacs-tree.sh
test/T465-emacs-unthreaded.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
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