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
main
Yueh-Hsuan Chiang 10 years ago
parent 40f562e747
commit 1a08d0beb5
  1. 2
      db/c.cc
  2. 12
      db/c_test.c

@ -2435,4 +2435,4 @@ extern void rocksdb_livefiles_destroy(
} // end extern "C" } // end extern "C"
#endif // ROCKSDB_LITE #endif // !ROCKSDB_LITE

@ -2,6 +2,8 @@
Use of this source code is governed by a BSD-style license that can be 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. */ 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 "rocksdb/c.h"
#include <stddef.h> #include <stddef.h>
@ -1007,3 +1009,13 @@ int main(int argc, char** argv) {
fprintf(stderr, "PASS\n"); fprintf(stderr, "PASS\n");
return 0; return 0;
} }
#else
#include <stdio.h>
int main() {
fprintf(stderr, "SKIPPED\n");
return 0;
}
#endif // !ROCKSDB_LITE

Loading…
Cancel
Save