From 43e9f01c20b53bd9e8b5ec033e8781c11b345864 Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Wed, 15 Feb 2017 11:16:34 -0800 Subject: [PATCH] Fix repair_test on ROCKSDB_LITE Summary: RepairDB isn't included in rocksdb lite, so don't test it. Closes https://github.com/facebook/rocksdb/pull/1873 Differential Revision: D4565094 Pulled By: ajkr fbshipit-source-id: 8cc0898 --- db/repair_test.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/db/repair_test.cc b/db/repair_test.cc index 82384836f..9db9d1292 100644 --- a/db/repair_test.cc +++ b/db/repair_test.cc @@ -3,6 +3,8 @@ // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. +#ifndef ROCKSDB_LITE + #include #include #include @@ -277,3 +279,13 @@ int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } + +#else +#include + +int main(int argc, char** argv) { + fprintf(stderr, "SKIPPED as RepairDB is not supported in ROCKSDB_LITE\n"); + return 0; +} + +#endif // ROCKSDB_LITE