From ce9712d34099893a3671ee8479b14d405d3c4d55 Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Mon, 20 Jul 2015 11:19:51 -0700 Subject: [PATCH] Make mock_env_test runnable in ROCKSDB_LITE Summary: Make mock_env_test runnable in ROCKSDB_LITE Test Plan: mock_env_test Reviewers: igor, sdong, yhchiang, kradhakrishnan, anthony Reviewed By: anthony Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D42585 --- util/mock_env_test.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/mock_env_test.cc b/util/mock_env_test.cc index e3d4970693..12e2890599 100644 --- a/util/mock_env_test.cc +++ b/util/mock_env_test.cc @@ -252,6 +252,8 @@ TEST_F(MockEnvTest, DBTest) { ASSERT_TRUE(!iterator->Valid()); delete iterator; + // TEST_FlushMemTable() is not supported in ROCKSDB_LITE + #ifndef ROCKSDB_LITE DBImpl* dbi = reinterpret_cast(db); ASSERT_OK(dbi->TEST_FlushMemTable()); @@ -260,6 +262,7 @@ TEST_F(MockEnvTest, DBTest) { ASSERT_OK(db->Get(ReadOptions(), keys[i], &res)); ASSERT_TRUE(res == vals[i]); } + #endif // ROCKSDB_LITE delete db; }