From 23e446a157626f98666e2151b8033fb196ba602e Mon Sep 17 00:00:00 2001 From: Zitan Chen <11285749+gg814@users.noreply.github.com> Date: Fri, 5 Jun 2020 17:24:43 -0700 Subject: [PATCH] Disable OpenForReadOnly tests in the LITE mode (#6947) Summary: Disable two OpenForReadOnly tests in the LITE mode Pull Request resolved: https://github.com/facebook/rocksdb/pull/6947 Test Plan: passed db_test2 Reviewed By: cheng-chang Differential Revision: D21914345 Pulled By: gg814 fbshipit-source-id: 58e81baf5d8cf8adcedaef3966aa3a427bbdf7c2 --- db/db_test2.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/db_test2.cc b/db/db_test2.cc index 83f3ee71d..bc968734e 100644 --- a/db/db_test2.cc +++ b/db/db_test2.cc @@ -25,6 +25,7 @@ class DBTest2 : public DBTestBase { DBTest2() : DBTestBase("/db_test2") {} }; +#ifndef ROCKSDB_LITE TEST_F(DBTest2, OpenForReadOnly) { DB* db_ptr = nullptr; std::string dbname = test::PerThreadDBPath("db_readonly"); @@ -85,6 +86,7 @@ TEST_F(DBTest2, OpenForReadOnlyWithColumnFamilies) { // With create_if_missing false, there should not be a dir in the file system ASSERT_NOK(env_->FileExists(dbname)); } +#endif // ROCKSDB_LITE class PrefixFullBloomWithReverseComparator : public DBTestBase,