From 04d201fa0b539479d7ec8ccfb7a89bf1c4aab887 Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Mon, 13 Jul 2015 18:35:03 -0700 Subject: [PATCH] Block spatial_db_test in ROCKSDB_LITE Summary: Block spatial_db_test in ROCKSDB_LITE as SpatialDB is not supported Test Plan: spatial_db_test Reviewers: yhchiang, igor, sdong Reviewed By: sdong Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D41991 --- utilities/spatialdb/spatial_db_test.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utilities/spatialdb/spatial_db_test.cc b/utilities/spatialdb/spatial_db_test.cc index 7b42995ba..41f3cd620 100644 --- a/utilities/spatialdb/spatial_db_test.cc +++ b/utilities/spatialdb/spatial_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 #include @@ -288,3 +290,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 SpatialDB is not supported in ROCKSDB_LITE\n"); + return 0; +} + +#endif // !ROCKSDB_LITE