TEST(APITest, reOpen) {
API* api = new API();
std::string db_name = "test_db_reopen";
api->Open(db_name);
api->Close();
api->Open(db_name);
api->Close();
}
Running main() from ~/KV-Store/cmake-build-debug/_deps/googletest-src/googletest/src/gtest_main.cc
Opening database test_db_reopen
Created database directory: test_db_reopen
API::set_path()-->> Created new Index.sst file at: "test_db_reopen/Index.sst"
Closing database
Cleanup completed.
Opening database test_db_reopen
Existed database directory: test_db_reopen
Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)