From: David Bremner Date: Sun, 5 Jul 2020 13:00:20 +0000 (-0300) Subject: test: add known broken test for n_m_count_files X-Git-Tag: 0.31_rc0~144 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=6dc62d8bea7ce537ba30e7f68061a27f03e0bda7 test: add known broken test for n_m_count_files This will be fixed in the next commit. --- diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index fff215e4..e1843d91 100755 --- a/test/T560-lib-error.sh +++ b/test/T560-lib-error.sh @@ -486,5 +486,22 @@ cat < EXPECTED EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "Handle counting files from closed database" +test_subtest_known_broken +cat c_head2 - c_tail <<'EOF' | test_C ${MAIL_DIR} + { + int result; + result = notmuch_message_count_files (message); + printf("%d\n%d\n", message != NULL, result < 0); + } +EOF +cat < EXPECTED +== stdout == +1 +1 +== stderr == +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done