Csync tests: Don't use sqlite3_close_v2.

This commit is contained in:
Christian Kamm 2014-10-22 12:44:03 +02:00
Родитель ed51a45187
Коммит d77fcea365
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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);
}

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);