From 72cab8895958b6522eb93107cc6dc570902f5c7a Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Wed, 24 Jun 2015 01:44:21 -0700 Subject: [PATCH] Block redis_test in ROCKSDB_LITE Summary: Block redis_test in ROCKSDB_LITE as utilities not supported in ROCKSDB_LITE. Test Plan: redis_test Reviewers: sdong, igor, rven, anthony, kradhakrishnan, IslamAbdelRahman Reviewed By: IslamAbdelRahman Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D40587 --- utilities/redis/redis_lists_test.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/utilities/redis/redis_lists_test.cc b/utilities/redis/redis_lists_test.cc index 14ed31631..62a62d7ee 100644 --- a/utilities/redis/redis_lists_test.cc +++ b/utilities/redis/redis_lists_test.cc @@ -15,6 +15,7 @@ * @author Deon Nicholas (dnicholas@fb.com) */ +#ifndef ROCKSDB_LITE #include #include @@ -882,3 +883,12 @@ int main(int argc, char* argv[]) { } } +#else +#include + +int main(int argc, char* argv[]) { + fprintf(stderr, "SKIPPED as redis is not supported in ROCKSDB_LITE\n"); + return 0; +} + +#endif // !ROCKSDB_LITE