Fix db_block_cache_test in lite build

Summary: D56715 move some of the tests from db_test to db_block_cache_test. Some of them should be disabled in lite build.

Test Plan:
    make check -j32
    OPT='-DROCKSDB_LITE' make check -j32

Reviewers: sdong

Reviewed By: sdong

Subscribers: andrewkr, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D56907
main
Yi Wu 9 years ago
parent 290883d94a
commit 725184b04e
  1. 5
      db/db_block_cache_test.cc

@ -224,6 +224,9 @@ TEST_F(DBBlockCacheTest, TestWithCompressedBlockCache) {
delete iter;
iter = nullptr;
}
#endif // SNAPPY
#ifndef ROCKSDB_LITE
// Make sure that when options.block_cache is set, after a new table is
// created its index/filter blocks are added to block cache.
@ -440,7 +443,7 @@ TEST_F(DBBlockCacheTest, CompressedCache) {
}
}
#endif
#endif // ROCKSDB_LITE
} // namespace rocksdb

Loading…
Cancel
Save