mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 10:54:52 +01:00
test: destroy thread from closed database
Check for (non)-crash.
This commit is contained in:
parent
864f422f14
commit
00f48f397a
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue