Skip to content

Commit

Permalink
Block document_db_test in ROCKSDB_LITE
Browse files Browse the repository at this point in the history
Summary: DocumentDB is not supported in ROCKSDB_LITE

Test Plan: document_db_test

Reviewers: yhchiang

Reviewed By: yhchiang

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D42177
  • Loading branch information
IslamAbdelRahman committed Jul 17, 2015
1 parent 35ca593 commit 26ca893
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions utilities/document/document_db_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <algorithm>

#include "rocksdb/utilities/json_document.h"
Expand Down Expand Up @@ -322,3 +324,13 @@ int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

#else
#include <stdio.h>

int main(int argc, char** argv) {
fprintf(stderr, "SKIPPED as DocumentDB is not supported in ROCKSDB_LITE\n");
return 0;
}

#endif // !ROCKSDB_LITE

0 comments on commit 26ca893

Please sign in to comment.