From 6dc62d8bea7ce537ba30e7f68061a27f03e0bda7 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 5 Jul 2020 10:00:20 -0300 Subject: [PATCH] test: add known broken test for n_m_count_files This will be fixed in the next commit. --- test/T560-lib-error.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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