浏览代码

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

正在加载...
取消
保存