diff options
| author | David Bremner <david@tethera.net> | 2020-07-05 10:00:22 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2020-07-14 07:31:45 -0300 |
| commit | 503c035077a2054cad7d82e5a2e040db2f8d253b (patch) | |
| tree | df590b0e8f09f0e3648f42063f1e63eeff59af8a | |
| parent | 96befd0dd075c5d3a63902d72eff7fc1928ba541 (diff) | |
test: add known broken test for n_m_add_tag with closed db
Exception will be caught in next commit.
| -rwxr-xr-x | test/T560-lib-error.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index 1635d0e7..cc3ffc6e 100755 --- a/test/T560-lib-error.sh +++ b/test/T560-lib-error.sh @@ -502,5 +502,21 @@ cat <<EOF > EXPECTED EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "Handle adding tag with closed database" +test_subtest_known_broken +cat c_head2 - c_tail <<'EOF' | test_C ${MAIL_DIR} + { + notmuch_status_t status; + status = notmuch_message_add_tag (message, "boom"); + printf("%d\n%d\n", message != NULL, status == NOTMUCH_STATUS_XAPIAN_EXCEPTION); + } +EOF +cat <<EOF > EXPECTED +== stdout == +1 +1 +== stderr == +EOF +test_expect_equal_file EXPECTED OUTPUT test_done |
