test/emacs: run notmuch-hello with a nonexisting default dir

This replicates the problem reported in Debian bug #922536.
This commit is contained in:
David Bremner 2021-08-29 12:23:28 -07:00
parent 59d0d5a489
commit 06477bce03

View file

@ -68,4 +68,13 @@ test_emacs '(notmuch-hello)
notmuch tag -$tag '*' notmuch tag -$tag '*'
test_expect_equal_file $EXPECTED/notmuch-hello-long-names OUTPUT test_expect_equal_file $EXPECTED/notmuch-hello-long-names OUTPUT
test_begin_subtest "notmuch-hello with nonexistent CWD"
test_subtest_known_broken
test_emacs '
(notmuch-hello)
(test-log-error
(let ((default-directory "/nonexistent"))
(notmuch-hello-update)))'
test_expect_equal "$(cat MESSAGES)" "COMPLETE"
test_done test_done