From fff74f20ff20cf396d935883c38bac031dc5d95a Mon Sep 17 00:00:00 2001 From: leveldb Team Date: Mon, 13 Jun 2022 15:59:26 +0000 Subject: [PATCH] Use GTEST_SKIP in leveldb:table_test This replaces a usage of fprintf to stderr PiperOrigin-RevId: 454620969 --- table/table_test.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/table/table_test.cc b/table/table_test.cc index 7f0f998..a405586 100644 --- a/table/table_test.cc +++ b/table/table_test.cc @@ -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());