[PATCH 2/9] test/emacs: run notmuch-hello with a nonexisting default dir

Subject: [PATCH 2/9] test/emacs: run notmuch-hello with a nonexisting default dir

Date: Sun, 29 Aug 2021 12:23:28 -0700

To: David Bremner, Tomi Ollila, Matt Armstrong, notmuch@notmuchmail.org

Cc:

From: David Bremner


This replicates the problem reported in Debian bug #922536.
---
 test/T440-emacs-hello.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

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
-- 
2.33.0
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: