From 26ca893198f73793e81214bf844b4d5805df4b12 Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Fri, 17 Jul 2015 12:54:30 -0700 Subject: [PATCH] Block document_db_test in ROCKSDB_LITE Summary: DocumentDB is not supported in ROCKSDB_LITE Test Plan: document_db_test Reviewers: yhchiang Reviewed By: yhchiang Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D42177 --- utilities/document/document_db_test.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utilities/document/document_db_test.cc b/utilities/document/document_db_test.cc index d02b58f8d..03bebf48e 100644 --- a/utilities/document/document_db_test.cc +++ b/utilities/document/document_db_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 "rocksdb/utilities/json_document.h" @@ -322,3 +324,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 DocumentDB is not supported in ROCKSDB_LITE\n"); + return 0; +} + +#endif // !ROCKSDB_LITE