diff options
| author | David Bremner <david@tethera.net> | 2020-07-05 10:00:20 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2020-07-14 07:31:30 -0300 |
| commit | 6dc62d8bea7ce537ba30e7f68061a27f03e0bda7 (patch) | |
| tree | a118883dc9fb692e6b4b36d5c7d8eb2d92f3cf41 | |
| parent | 00f1abfdf45025f176e079b794f4df0ee4afa9cb (diff) | |
test: add known broken test for n_m_count_files
This will be fixed in the next commit.
| -rwxr-xr-x | test/T560-lib-error.sh | 17 |
1 files changed, 17 insertions, 0 deletions
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 <<EOF > 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 <<EOF > EXPECTED +== stdout == +1 +1 +== stderr == +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done |
