aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2012-11-25 00:25:44 -0500
committerGravatar David Bremner <bremner@debian.org>2012-11-26 22:12:21 -0400
commitf5d65615bb1a9e34761674aa5432495579b0aeaf (patch)
tree474e748cfe2d01bf384fd3cbd47c40f910f70616 /test
parent59c994e770581acb8effde7057d09823e1194830 (diff)
test: Add a test for skipping ignored broken symlinks
Currently marked as broken because we abort on broken symlinks, even if they are in the ignore list.
Diffstat (limited to 'test')
-rwxr-xr-xtest/new7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/new b/test/new
index f562cec1..ea678d7c 100755
--- a/test/new
+++ b/test/new
@@ -236,4 +236,11 @@ test_expect_equal "$output" \
No new mail."
+test_begin_subtest "Don't stop for ignored broken symlinks"
+test_subtest_known_broken
+notmuch config set new.ignore .git ignored_file .ignored_hidden_file broken_link
+ln -s i_do_not_exist "${MAIL_DIR}"/broken_link
+output=$(NOTMUCH_NEW 2>&1)
+test_expect_equal "$output" "No new mail."
+
test_done