Use GTEST_SKIP in leveldb:table_test
This replaces a usage of fprintf to stderr PiperOrigin-RevId: 454620969
This commit is contained in:
parent
d019e3605f
commit
fff74f20ff
@ -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…
Reference in New Issue
Block a user