mirror of
https://github.com/google/leveldb.git
synced 2024-11-27 23:49:05 +08:00
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) {
|
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());
|
||||||
|
Loading…
Reference in New Issue
Block a user