aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-07-05 10:00:22 -0300
committerDavid Bremner <david@tethera.net>2020-07-14 07:31:45 -0300
commit503c035077a2054cad7d82e5a2e040db2f8d253b (patch)
treedf590b0e8f09f0e3648f42063f1e63eeff59af8a /test
parent96befd0dd075c5d3a63902d72eff7fc1928ba541 (diff)
test: add known broken test for n_m_add_tag with closed db
Exception will be caught in next commit.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T560-lib-error.sh16
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