Add Status check enforcement for unit tests (#7464)

Summary:
Add status check for unit tests : block_based_filter_block_test, block_fetcher_test, full_filter_block_test and partitioned_filter_block_test

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7464

Reviewed By: zhichao-cao

Differential Revision: D24011309

Pulled By: akankshamahajan15

fbshipit-source-id: d814803f94e8bb8b811ef170d20b22d52c1a3ff2
main
Akanksha Mahajan 4 years ago committed by Facebook GitHub Bot
parent ddbc5dad05
commit 5997f6b17b
  1. 4
      Makefile
  2. 5
      table/block_fetcher_test.cc

@ -647,6 +647,10 @@ ifdef ASSERT_STATUS_CHECKED
merge_helper_test \ merge_helper_test \
memtable_list_test \ memtable_list_test \
flush_job_test \ flush_job_test \
block_based_filter_block_test \
block_fetcher_test \
full_filter_block_test \
partitioned_filter_block_test \
ifeq ($(USE_FOLLY_DISTRIBUTED_MUTEX),1) ifeq ($(USE_FOLLY_DISTRIBUTED_MUTEX),1)
TESTS_PASSING_ASC += folly_synchronization_distributed_mutex_test TESTS_PASSING_ASC += folly_synchronization_distributed_mutex_test

@ -295,8 +295,9 @@ class BlockFetcherTest : public testing::Test {
uint64_t file_size = 0; uint64_t file_size = 0;
ASSERT_OK(env_->GetFileSize(file->file_name(), &file_size)); ASSERT_OK(env_->GetFileSize(file->file_name(), &file_size));
IOOptions opts; IOOptions opts;
ReadFooterFromFile(opts, file, nullptr /* prefetch_buffer */, file_size, ASSERT_OK(ReadFooterFromFile(opts, file, nullptr /* prefetch_buffer */,
footer, kBlockBasedTableMagicNumber); file_size, footer,
kBlockBasedTableMagicNumber));
} }
// NOTE: compression_type returns the compression type of the fetched block // NOTE: compression_type returns the compression type of the fetched block

Loading…
Cancel
Save