Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: v01dstar <[email protected]>
  • Loading branch information
v01dstar committed Sep 4, 2024
1 parent 1f0ecf1 commit 63db741
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.27)
cmake_minimum_required(VERSION 3.0)
project(titan)
enable_language(CXX)
enable_language(C)
Expand Down
2 changes: 2 additions & 0 deletions src/punch_hole_gc_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class PunchHoleGCTest : public testing::Test {
};

TEST_F(PunchHoleGCTest, PunchHole) {
#if defined(FALLOC_FL_PUNCH_HOLE)
rocksdb::SyncPoint::GetInstance()->LoadDependency(
{{"PunchHoleGCTest::PunchHole:AfterCompact",
"TitanDBImpl::BackgroundCallGC:BeforeGCRunning"},
Expand Down Expand Up @@ -183,6 +184,7 @@ TEST_F(PunchHoleGCTest, PunchHole) {
options_.disable_background_gc = true;
options_.disable_auto_compactions = true;
options_.punch_hole_threshold = 0;
#endif
}

} // namespace titandb
Expand Down
1 change: 1 addition & 0 deletions src/table_builder_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class TableBuilderTest : public testing::Test {
db_options_.dirname = tmpdir_;
db_options_.statistics = nullptr;
cf_options_.min_blob_size = kMinBlobSize;
env_->DeleteDir(tmpdir_);
Open();
}

Expand Down

0 comments on commit 63db741

Please sign in to comment.