From: Austin Clements Date: Sun, 25 Nov 2012 05:25:44 +0000 (-0500) Subject: test: Add a test for skipping ignored broken symlinks X-Git-Tag: 0.15_rc1~154 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=f5d65615bb1a9e34761674aa5432495579b0aeaf 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. --- 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