Explorar el Código

Use GTEST_SKIP in leveldb:table_test

This replaces a usage of fprintf to stderr

PiperOrigin-RevId: 454620969
xry
leveldb Team hace 2 años
cometido por Victor Costan
padre
commit
fff74f20ff
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. +2
    -4
      table/table_test.cc

+ 2
- 4
table/table_test.cc Ver fichero

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

Cargando…
Cancelar
Guardar