diff --git a/db/db_test2.cc b/db/db_test2.cc index e0ee2f149..9efdcbd22 100644 --- a/db/db_test2.cc +++ b/db/db_test2.cc @@ -4163,7 +4163,7 @@ TEST_F(DBTest2, TraceWithFilter) { TEST_F(DBTest2, PinnableSliceAndMmapReads) { Options options = CurrentOptions(); options.env = env_; - if (options.env != Env::Default()) { + if (!IsMemoryMappedAccessSupported()) { ROCKSDB_GTEST_SKIP("Test requires default environment"); return; }