test/emacs: tests for notmuch-{tree,unthreaded} with bad CWD

These work thanks to the previous wrapping of process creation
primitives.
This commit is contained in:
David Bremner 2021-08-29 12:23:35 -07:00
parent e722b4f48c
commit 21e365f51a
2 changed files with 12 additions and 0 deletions

View file

@ -194,4 +194,10 @@ test_emacs '
' '
test_expect_equal_file $EXPECTED/result-format-function OUTPUT 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 test_done

View file

@ -51,4 +51,10 @@ test_emacs '
' '
test_expect_equal_file $EXPECTED/result-format-function OUTPUT 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 test_done