From 62a8fd154a4d16307be1daa3aa3bf9625fa2667f Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Wed, 24 Jun 2015 15:01:43 -0700 Subject: [PATCH] Make stringappend_test runnable in ROCKSDB_LITE Summary: Make stringappend_test runnable in ROCKSDB_LITE Test Plan: stringappend_test Reviewers: sdong, rven, anthony, kradhakrishnan, IslamAbdelRahman, igor Reviewed By: igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D40593 --- utilities/merge_operators/string_append/stringappend_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utilities/merge_operators/string_append/stringappend_test.cc b/utilities/merge_operators/string_append/stringappend_test.cc index 92621de92..bfe94b796 100644 --- a/utilities/merge_operators/string_append/stringappend_test.cc +++ b/utilities/merge_operators/string_append/stringappend_test.cc @@ -36,6 +36,7 @@ std::shared_ptr OpenNormalDb(char delim_char) { return std::shared_ptr(db); } +#ifndef ROCKSDB_LITE // TtlDb is not supported in Lite // Open a TtlDB with a non-associative StringAppendTESTOperator std::shared_ptr OpenTtlDb(char delim_char) { DBWithTTL* db; @@ -45,6 +46,7 @@ std::shared_ptr OpenTtlDb(char delim_char) { EXPECT_OK(DBWithTTL::Open(options, kDbName, &db, 123456)); return std::shared_ptr(db); } +#endif // !ROCKSDB_LITE } // namespace /// StringLists represents a set of string-lists, each with a key-index. @@ -585,12 +587,14 @@ int main(int argc, char** argv) { result = RUN_ALL_TESTS(); } +#ifndef ROCKSDB_LITE // TtlDb is not supported in Lite // Run with TTL { fprintf(stderr, "Running tests with ttl db and generic operator.\n"); StringAppendOperatorTest::SetOpenDbFunction(&OpenTtlDb); result |= RUN_ALL_TESTS(); } +#endif // !ROCKSDB_LITE return result; }