This commit is contained in:
Scott E. Graves 2024-07-16 09:17:59 -05:00
parent cd484aa7bb
commit b05cedb509

View File

@ -35,10 +35,8 @@ TEST(database, db_insert) {
{ {
sqlite3 *db3_ptr{nullptr}; sqlite3 *db3_ptr{nullptr};
auto res = sqlite3_open_v2( auto res = sqlite3_open_v2(
utils::path::absolute( utils::path::combine(get_test_dir(), {"test.db3"}).c_str(), &db3_ptr,
utils::path::combine(get_test_dir(), {"test.db3"})) SQLITE_OPEN_READWRITE, nullptr);
.c_str(),
&db3_ptr, SQLITE_OPEN_READWRITE, nullptr);
ASSERT_EQ(SQLITE_OK, res); ASSERT_EQ(SQLITE_OK, res);
ASSERT_TRUE(db3_ptr != nullptr); ASSERT_TRUE(db3_ptr != nullptr);