From: David Bremner Date: Sun, 29 Aug 2021 19:23:35 +0000 (-0700) Subject: test/emacs: tests for notmuch-{tree,unthreaded} with bad CWD X-Git-Tag: archive/debian/0.34_rc0-1~13 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=21e365f51a7ff17e5154cf06396aeafe3f7d9bd7 test/emacs: tests for notmuch-{tree,unthreaded} with bad CWD These work thanks to the previous wrapping of process creation primitives. --- diff --git a/test/T460-emacs-tree.sh b/test/T460-emacs-tree.sh index 946583d9..0f23b418 100755 --- a/test/T460-emacs-tree.sh +++ b/test/T460-emacs-tree.sh @@ -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 diff --git a/test/T465-emacs-unthreaded.sh b/test/T465-emacs-unthreaded.sh index 1f386bf3..e7bc1439 100755 --- a/test/T465-emacs-unthreaded.sh +++ b/test/T465-emacs-unthreaded.sh @@ -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