This allows finer control over when to close the database. --- test/T566-lib-message.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/T566-lib-message.sh b/test/T566-lib-message.sh index 4c9fc0df..7e8f8959 100755 --- a/test/T566-lib-message.sh +++ b/test/T566-lib-message.sh @@ -18,7 +18,7 @@ cat <<'EOF' > c_tail } EOF -cat <<EOF > c_head +cat <<EOF > c_head0 #include <stdio.h> #include <notmuch.h> #include <notmuch-test.h> @@ -36,9 +36,11 @@ int main (int argc, char** argv) exit (1); } EXPECT0(notmuch_database_find_message (db, id, &message)); - EXPECT0(notmuch_database_close (db)); EOF +cp c_head0 c_head +echo " EXPECT0(notmuch_database_close (db));" >> c_head + test_begin_subtest "Handle getting message-id from closed database" cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} { -- 2.27.0 _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org