瀏覽代碼

Use GTEST_SKIP in leveldb:table_test

This replaces a usage of fprintf to stderr

PiperOrigin-RevId: 454620969
main
leveldb Team 2 年之前
committed by Victor Costan
父節點
當前提交
fff74f20ff
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. +2
    -4
      table/table_test.cc

+ 2
- 4
table/table_test.cc 查看文件

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

Loading…
取消
儲存