From b16ead531d073a4becbc6fecdff39ffbec39eaa0 Mon Sep 17 00:00:00 2001 From: sdong Date: Fri, 13 Mar 2015 11:18:35 -0700 Subject: [PATCH] DBTest.DynamicLevelCompressionPerLevel should not run without snappy support Summary: The test depends on snappy to be used. Skip the test if it is not supported. Test Plan: Run the test Reviewers: meyering, igor Reviewed By: igor Subscribers: leveldb, dhruba Differential Revision: https://reviews.facebook.net/D34995 --- db/db_test.cc | 3 +++ 1 file changed, 3 insertions(+) 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++) {