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
This commit is contained in:
sdong 2015-03-13 11:18:35 -07:00
parent a5e60bafc2
commit b16ead531d
1 changed files with 3 additions and 0 deletions

View File

@ -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++) {