Skip to content

Commit 1a81f69

Browse files
committed
Fix test
Signed-off-by: v01dstar <[email protected]>
1 parent 1f0ecf1 commit 1a81f69

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/punch_hole_gc_test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class PunchHoleGCTest : public testing::Test {
104104
};
105105

106106
TEST_F(PunchHoleGCTest, PunchHole) {
107+
#if defined(FALLOC_FL_PUNCH_HOLE)
107108
rocksdb::SyncPoint::GetInstance()->LoadDependency(
108109
{{"PunchHoleGCTest::PunchHole:AfterCompact",
109110
"TitanDBImpl::BackgroundCallGC:BeforeGCRunning"},
@@ -183,6 +184,7 @@ TEST_F(PunchHoleGCTest, PunchHole) {
183184
options_.disable_background_gc = true;
184185
options_.disable_auto_compactions = true;
185186
options_.punch_hole_threshold = 0;
187+
#endif
186188
}
187189

188190
} // namespace titandb

src/table_builder_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ class TableBuilderTest : public testing::Test {
149149
db_options_.dirname = tmpdir_;
150150
db_options_.statistics = nullptr;
151151
cf_options_.min_blob_size = kMinBlobSize;
152+
env_->DeleteDir(tmpdir_);
152153
Open();
153154
}
154155

0 commit comments

Comments
 (0)