Skip to content

Commit

Permalink
Block c_test in ROCKSDB_LITE
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yhchiang committed Jun 17, 2015
1 parent 40f562e commit 1a08d0b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion db/c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2435,4 +2435,4 @@ extern void rocksdb_livefiles_destroy(

} // end extern "C"

#endif // ROCKSDB_LITE
#endif // !ROCKSDB_LITE
12 changes: 12 additions & 0 deletions db/c_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stddef.h>
Expand Down Expand Up @@ -1007,3 +1009,13 @@ int main(int argc, char** argv) {
fprintf(stderr, "PASS\n");
return 0;
}

#else
#include <stdio.h>

int main() {
fprintf(stderr, "SKIPPED\n");
return 0;
}

#endif // !ROCKSDB_LITE

0 comments on commit 1a08d0b

Please sign in to comment.