diff options
| author | David Bremner <david@tethera.net> | 2021-08-29 12:23:33 -0700 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-09-11 10:30:25 -0300 |
| commit | 9fe36d7dc79df93e75de44290faf3fed66e688c0 (patch) | |
| tree | 3f60142d1727c06e38339ef0ce873a8d84dc42da | |
| parent | eb226437e1c0da6da86c04c78cbdd2020b982ad6 (diff) | |
test/emacs: test for notmuch-show with nonexistent CWD
Somewhat predictably, the other code path in
notmuch-call-notmuch--helper also needs to be fixed.
| -rwxr-xr-x | test/T450-emacs-show.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh index 5bb5b201..03f953aa 100755 --- a/test/T450-emacs-show.sh +++ b/test/T450-emacs-show.sh @@ -236,4 +236,12 @@ test_emacs '(let ((notmuch-crypto-process-mime nil)) (test-visible-output))' test_expect_equal_file $EXPECTED/notmuch-show-decrypted-message-no-crypto OUTPUT +test_begin_subtest "notmuch-show with nonexistent CWD" +tid=$(notmuch search --limit=1 --output=threads '*' | sed s/thread://) +test_subtest_known_broken +test_emacs "(test-log-error + (let ((default-directory \"/nonexistent\")) + (notmuch-show \"$tid\")))" +test_expect_equal "$(cat MESSAGES)" "COMPLETE" + test_done |
