Browse Source

Use GTEST_SKIP in leveldb:table_test

This replaces a usage of fprintf to stderr

PiperOrigin-RevId: 454620969
xry
leveldb Team 2 years ago
committed by Victor Costan
parent
commit
fff74f20ff
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      table/table_test.cc

+ 2
- 4
table/table_test.cc View File

@ -791,10 +791,8 @@ static bool SnappyCompressionSupported() {
}
TEST(TableTest, ApproximateOffsetOfCompressed) {
if (!SnappyCompressionSupported()) {
std::fprintf(stderr, "skipping compression tests\n");
return;
}
if (!SnappyCompressionSupported())
GTEST_SKIP() << "skipping compression tests";
Random rnd(301);
TableConstructor c(BytewiseComparator());

Loading…
Cancel
Save