X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT568-lib-thread.sh;h=66066854eb832cfb3f7183a413c134fb0ea13516;hp=82e4ecb81b7a189cd0d9b7c051358e6a41363ac2;hb=00f48f397abcdc662041726b25dac0173880f2e5;hpb=864f422f149c709e5701ba194a32931d9f216e4c diff --git a/test/T568-lib-thread.sh b/test/T568-lib-thread.sh index 82e4ecb8..66066854 100755 --- a/test/T568-lib-thread.sh +++ b/test/T568-lib-thread.sh @@ -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 < EXPECTED +== stdout == +SUCCESS +== stderr == +EOF +test_expect_equal_file EXPECTED OUTPUT test_done