diff options
author | Victor Costan <costan@google.com> | 2023-03-28 20:17:45 -0700 |
---|---|---|
committer | Victor Costan <costan@google.com> | 2023-03-28 20:17:45 -0700 |
commit | 9cbbc5fb75cbd512e6168c6f00691417cfcac2f0 (patch) | |
tree | 53de35956e5bb69831be6675be4441a91202add6 /db/db_test.cc | |
parent | 80d858fb2a092cc79beaa04b7e9cbd23983e4f2c (diff) | |
parent | 13ebad24dc1a5b338b619e8f1229105fbba3992f (diff) | |
download | leveldb-9cbbc5fb75cbd512e6168c6f00691417cfcac2f0.tar.gz |
Merge pull request #1104 from reillyeon:chromium_env
PiperOrigin-RevId: 520172744
Diffstat (limited to 'db/db_test.cc')
-rw-r--r-- | db/db_test.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/db_test.cc b/db/db_test.cc index 472258b..a4a84cd 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -1722,8 +1722,14 @@ TEST_F(DBTest, DestroyEmptyDir) { ASSERT_TRUE(env.FileExists(dbname)); std::vector<std::string> children; ASSERT_LEVELDB_OK(env.GetChildren(dbname, &children)); +#if defined(LEVELDB_PLATFORM_CHROMIUM) + // TODO(https://crbug.com/1428746): Chromium's file system abstraction always + // filters out '.' and '..'. + ASSERT_EQ(0, children.size()); +#else // The stock Env's do not filter out '.' and '..' special files. ASSERT_EQ(2, children.size()); +#endif // defined(LEVELDB_PLATFORM_CHROMIUM) ASSERT_LEVELDB_OK(DestroyDB(dbname, opts)); ASSERT_TRUE(!env.FileExists(dbname)); |