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
main
Islam AbdelRahman 10 years ago
parent c06d1d8393
commit ce9712d340
  1. 3
      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<DBImpl*>(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;
}

Loading…
Cancel
Save