diff --git a/db/column_family_test.cc b/db/column_family_test.cc index eb48f6cff..553c8832f 100644 --- a/db/column_family_test.cc +++ b/db/column_family_test.cc @@ -167,7 +167,8 @@ TEST(ColumnFamilyTest, IgnoreRecoveredLog) { string backup_logs = dbname_ + "/backup_logs"; // delete old files in backup_logs directory - env_->CreateDirIfMissing(backup_logs); + ASSERT_OK(env_->CreateDirIfMissing(dbname_)); + ASSERT_OK(env_->CreateDirIfMissing(backup_logs)); vector old_files; env_->GetChildren(backup_logs, &old_files); for (auto& file : old_files) {