Parcourir la source

Use GTEST_SKIP in leveldb:table_test

This replaces a usage of fprintf to stderr

PiperOrigin-RevId: 454620969
master
leveldb Team il y a 2 ans
committed by Victor Costan
Parent
révision
fff74f20ff
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. +2
    -4
      table/table_test.cc

+ 2
- 4
table/table_test.cc Voir le fichier

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

Chargement…
Annuler
Enregistrer