Sfoglia il codice sorgente

Use GTEST_SKIP in leveldb:table_test

This replaces a usage of fprintf to stderr

PiperOrigin-RevId: 454620969
baseline
leveldb Team 2 anni fa
committed by Victor Costan
parent
commit
fff74f20ff
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. +2
    -4
      table/table_test.cc

+ 2
- 4
table/table_test.cc Vedi File

@ -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());

Caricamento…
Annulla
Salva