diff --git a/db/db_test.cc b/db/db_test.cc index 3af4e6102c..08123edb43 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -10666,6 +10666,9 @@ TEST(DBTest, DynamicLevelMaxBytesBase2) { } TEST(DBTest, DynamicLevelCompressionPerLevel) { + if (!SnappyCompressionSupported()) { + return; + } const int kNKeys = 120; int keys[kNKeys]; for (int i = 0; i < kNKeys; i++) {