This does not currently throw an error, and it should stay that way. --- test/T562-lib-database.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/T562-lib-database.sh b/test/T562-lib-database.sh index c9705b13..0dae0096 100755 --- a/test/T562-lib-database.sh +++ b/test/T562-lib-database.sh @@ -83,4 +83,19 @@ cat <<EOF > EXPECTED EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "re-close a closed db" +cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} + { + EXPECT0(notmuch_database_close (db)); + stat = notmuch_database_close (db); + printf ("%d\n", stat); + } +EOF +cat <<EOF > EXPECTED +== stdout == +0 +== stderr == +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done -- 2.27.0 _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org