]> git.notmuchmail.org Git - notmuch/blobdiff - test/T568-lib-thread.sh
test: destroy thread from closed database
[notmuch] / test / T568-lib-thread.sh
index 82e4ecb81b7a189cd0d9b7c051358e6a41363ac2..66066854eb832cfb3f7183a413c134fb0ea13516 100755 (executable)
@@ -285,5 +285,19 @@ unread
 EOF
 test_expect_equal_file EXPECTED OUTPUT
 
+test_begin_subtest "destroy thread with closed database"
+cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
+    {
+        time_t stamp;
+        notmuch_thread_destroy (thread);
+        printf("SUCCESS\n");
+    }
+EOF
+cat <<EOF > EXPECTED
+== stdout ==
+SUCCESS
+== stderr ==
+EOF
+test_expect_equal_file EXPECTED OUTPUT
 
 test_done