diff --git a/db/plain_table_db_test.cc b/db/plain_table_db_test.cc index fa6afa916..c97bbfe36 100644 --- a/db/plain_table_db_test.cc +++ b/db/plain_table_db_test.cc @@ -8,6 +8,9 @@ // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // 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 + #include #include @@ -1089,3 +1092,13 @@ int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } + +#else +#include + +int main(int argc, char** argv) { + fprintf(stderr, "SKIPPED as plain table is not supported in ROCKSDB_LITE\n"); + return 0; +} + +#endif // !ROCKSDB_LITE