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
This commit is contained in:
parent
2e7070b194
commit
23e446a157
@ -25,6 +25,7 @@ class DBTest2 : public DBTestBase {
|
|||||||
DBTest2() : DBTestBase("/db_test2") {}
|
DBTest2() : DBTestBase("/db_test2") {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef ROCKSDB_LITE
|
||||||
TEST_F(DBTest2, OpenForReadOnly) {
|
TEST_F(DBTest2, OpenForReadOnly) {
|
||||||
DB* db_ptr = nullptr;
|
DB* db_ptr = nullptr;
|
||||||
std::string dbname = test::PerThreadDBPath("db_readonly");
|
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
|
// With create_if_missing false, there should not be a dir in the file system
|
||||||
ASSERT_NOK(env_->FileExists(dbname));
|
ASSERT_NOK(env_->FileExists(dbname));
|
||||||
}
|
}
|
||||||
|
#endif // ROCKSDB_LITE
|
||||||
|
|
||||||
class PrefixFullBloomWithReverseComparator
|
class PrefixFullBloomWithReverseComparator
|
||||||
: public DBTestBase,
|
: public DBTestBase,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user