Csync tests: Don't use sqlite3_close_v2.

This commit is contained in:
Christian Kamm 2014-10-22 12:44:03 +02:00
parent ed51a45187
commit d77fcea365
3 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ static void setup(void **state) {
rc = sqlite3_open_v2(TESTDB, &db, SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE, NULL);
assert_int_equal(rc, SQLITE_OK);
rc = sqlite3_close_v2(db);
rc = sqlite3_close(db);
assert_int_equal(rc, SQLITE_OK);
}

View file

@ -50,7 +50,7 @@ static void setup(void **state)
sqlite3 *db = NULL;
rc = sqlite3_open_v2(TESTDB, &db, SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE, NULL);
assert_int_equal(rc, SQLITE_OK);
rc = sqlite3_close_v2(db);
rc = sqlite3_close(db);
assert_int_equal(rc, SQLITE_OK);
rc = csync_statedb_load(csync, TESTDB, &csync->statedb.db);

View file

@ -129,7 +129,7 @@ static void setup_ftw(void **state)
rc = sqlite3_open_v2(TESTDB, &db, SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE, NULL);
assert_int_equal(rc, SQLITE_OK);
statedb_create_metadata_table(db);
rc = sqlite3_close_v2(db);
rc = sqlite3_close(db);
assert_int_equal(rc, SQLITE_OK);
rc = csync_statedb_load(csync, TESTDB, &csync->statedb.db);