mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
test: split header for lib-message tests.
This allows finer control over when to close the database.
This commit is contained in:
parent
e5e17926db
commit
2b6e73d895
1 changed files with 4 additions and 2 deletions
|
@ -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}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue