Skip to content

Commit

Permalink
Make mock_env_test runnable in ROCKSDB_LITE
Browse files Browse the repository at this point in the history
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
  • Loading branch information
IslamAbdelRahman committed Jul 20, 2015
1 parent c06d1d8 commit ce9712d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/mock_env_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand All @@ -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;
}
Expand Down

0 comments on commit ce9712d

Please sign in to comment.