Przeglądaj źródła

Use GTEST_SKIP in leveldb:table_test

This replaces a usage of fprintf to stderr

PiperOrigin-RevId: 454620969
baseline
leveldb Team 2 lat temu
committed by Victor Costan
rodzic
commit
fff74f20ff
1 zmienionych plików z 2 dodań i 4 usunięć
  1. +2
    -4
      table/table_test.cc

+ 2
- 4
table/table_test.cc Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz