From 144d2910db47e69f701f8a7706f395516a2e68ba Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Mon, 20 Jul 2015 11:15:16 -0700 Subject: [PATCH] Block backupable_db_test_lite in ROCKSDB_LITE Summary: BackupableDB is not supported in ROCKSDB_LITE, blocking backupable_db_test_lite Test Plan: backupable_db_test Reviewers: sdong, igor, yhchiang Reviewed By: yhchiang Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D42165 --- utilities/backupable/backupable_db_test.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utilities/backupable/backupable_db_test.cc b/utilities/backupable/backupable_db_test.cc index 89d1b6208..fd2bf87f3 100644 --- a/utilities/backupable/backupable_db_test.cc +++ b/utilities/backupable/backupable_db_test.cc @@ -7,6 +7,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. +#ifndef ROCKSDB_LITE + #include #include #include @@ -1168,3 +1170,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 BackupableDB is not supported in ROCKSDB_LITE\n"); + return 0; +} + +#endif // !ROCKSDB_LITE