Use GTEST_SKIP in leveldb:table_test

This replaces a usage of fprintf to stderr

PiperOrigin-RevId: 454620969
This commit is contained in:
leveldb Team 2022-06-13 15:59:26 +00:00 committed by Victor Costan
parent d019e3605f
commit fff74f20ff

View File

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