aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-08-29 12:23:28 -0700
committerDavid Bremner <david@tethera.net>2021-09-11 10:13:22 -0300
commit06477bce03d09353e92cea7a59134b5ac3facae3 (patch)
treeda1045a1db5debcdb2ad2107c05404bae44ad8de /test
parent59d0d5a4891469f3c91dcea7448c086cc8434a7a (diff)
test/emacs: run notmuch-hello with a nonexisting default dir
This replicates the problem reported in Debian bug #922536.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T440-emacs-hello.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/T440-emacs-hello.sh b/test/T440-emacs-hello.sh
index bafccd1f..9d1e5a9c 100755
--- a/test/T440-emacs-hello.sh
+++ b/test/T440-emacs-hello.sh
@@ -68,4 +68,13 @@ test_emacs '(notmuch-hello)
notmuch tag -$tag '*'
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