From 1a08d0beb52eb06816474c1bc7467e3779125e45 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Wed, 17 Jun 2015 10:54:51 -0700 Subject: [PATCH] Block c_test in ROCKSDB_LITE Summary: Block c_test in ROCKSDB_LITE as it's not supported in ROCKSDB_LITE. Test Plan: c_test Reviewers: sdong, rven, anthony, kradhakrishnan, IslamAbdelRahman, igor Reviewed By: igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D40257 --- db/c.cc | 2 +- db/c_test.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/db/c.cc b/db/c.cc index fbf2c4ef05..71c5f542cf 100644 --- a/db/c.cc +++ b/db/c.cc @@ -2435,4 +2435,4 @@ extern void rocksdb_livefiles_destroy( } // end extern "C" -#endif // ROCKSDB_LITE +#endif // !ROCKSDB_LITE diff --git a/db/c_test.c b/db/c_test.c index 2669b03adb..978b6174c9 100644 --- a/db/c_test.c +++ b/db/c_test.c @@ -2,6 +2,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 // Lite does not support C API + #include "rocksdb/c.h" #include @@ -1007,3 +1009,13 @@ int main(int argc, char** argv) { fprintf(stderr, "PASS\n"); return 0; } + +#else +#include + +int main() { + fprintf(stderr, "SKIPPED\n"); + return 0; +} + +#endif // !ROCKSDB_LITE