summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleveldb Team <no-reply@google.com>2022-06-13 15:59:26 +0000
committerVictor Costan <pwnall@chromium.org>2022-07-18 21:19:46 +0000
commitfff74f20ff20cf396d935883c38bac031dc5d95a (patch)
tree8cbac3d00faa30e38eb35d4fa11c6b94f9db8cca
parentd019e3605f222ebc5a3a2484a2cb29db537551dd (diff)
downloadleveldb-fff74f20ff20cf396d935883c38bac031dc5d95a.tar.gz
Use GTEST_SKIP in leveldb:table_test
This replaces a usage of fprintf to stderr PiperOrigin-RevId: 454620969
-rw-r--r--table/table_test.cc6
1 files 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());