char *msg = NULL;
stat = notmuch_database_open_verbose (argv[1], NOTMUCH_DATABASE_MODE_READ_WRITE, &db, &msg);
char *msg = NULL;
stat = notmuch_database_open_verbose (argv[1], NOTMUCH_DATABASE_MODE_READ_WRITE, &db, &msg);
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
{
unsigned int version;
EXPECT0(notmuch_database_close (db));
version = notmuch_database_get_version (db);
printf ("%u\n", version);
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
{
unsigned int version;
EXPECT0(notmuch_database_close (db));
version = notmuch_database_get_version (db);
printf ("%u\n", version);