mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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:
parent
e722b4f48c
commit
21e365f51a
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue