[PATCH 1/2] test: Add a test for skipping ignored broken symlinks

2012-11-25 Thread Austin Clements
Currently marked as broken because we abort on broken symlinks, even
if they are in the ignore list.
---
 test/new |7 +++
 1 file changed, 7 insertions(+)

diff --git a/test/new b/test/new
index 587aa11..59892a7 100755
--- a/test/new
+++ b/test/new
@@ -203,4 +203,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
-- 
1.7.10.4



[PATCH 1/2] test: Add a test for skipping ignored broken symlinks

2012-11-24 Thread Austin Clements
Currently marked as broken because we abort on broken symlinks, even
if they are in the ignore list.
---
 test/new |7 +++
 1 file changed, 7 insertions(+)

diff --git a/test/new b/test/new
index 587aa11..59892a7 100755
--- a/test/new
+++ b/test/new
@@ -203,4 +203,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 21)
+test_expect_equal $output No new mail.
+
 test_done
-- 
1.7.10.4

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch