diff options
author | David Bremner <david@tethera.net> | 2020-07-24 08:14:06 -0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2020-07-31 07:41:00 -0300 |
commit | 00f48f397abcdc662041726b25dac0173880f2e5 (patch) | |
tree | 98e9f16dda86c3164d37d4f0f8b8d8d3bfd7bd56 /test | |
parent | 864f422f149c709e5701ba194a32931d9f216e4c (diff) |
test: destroy thread from closed database
Check for (non)-crash.
Diffstat (limited to 'test')
-rwxr-xr-x | test/T568-lib-thread.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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 <<EOF > EXPECTED +== stdout == +SUCCESS +== stderr == +EOF +test_expect_equal_file EXPECTED OUTPUT test_done |