From 8d9b4d97410a9f61f04c4c7b29ddf4bee4d5bc7a Mon Sep 17 00:00:00 2001 From: anand76 Date: Thu, 29 Nov 2018 10:49:07 -0800 Subject: [PATCH] Fix failure of sst_file_reader_test in LITE mode regression test (#4725) Summary: Add a dummy main() in sst_file_reader_test for ROCKSDB_LITE to fix link failure in regression Pull Request resolved: https://github.com/facebook/rocksdb/pull/4725 Differential Revision: D13252885 Pulled By: anand1976 fbshipit-source-id: 0e22b964815e2bf01aff7d03ed4ae59d44fa86f1 --- table/sst_file_reader_test.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/table/sst_file_reader_test.cc b/table/sst_file_reader_test.cc index e78a8bd4c..8da366fd7 100644 --- a/table/sst_file_reader_test.cc +++ b/table/sst_file_reader_test.cc @@ -95,4 +95,12 @@ int main(int argc, char** argv) { return RUN_ALL_TESTS(); } +#else +#include + +int main(int /*argc*/, char** /*argv*/) { + fprintf(stderr, "SKIPPED as SstFileReader is not supported in ROCKSDB_LITE\n"); + return 0; +} + #endif // ROCKSDB_LITE