diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-06-02 12:58:52 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-06-02 12:58:52 +0200 |
commit | 2a47c05562252f8f03378d69702598eefc970bc9 (patch) | |
tree | fbe25bb6622cfbc4bc9512fb7255e2d651a6888a /vespalib/src/tests/util | |
parent | 714d3bf6b0a4b60dde75143c3062cdddf69af093 (diff) |
Remove most use of vespalib::rmdir in vespalib. Deprecate vespalib::mkdir.
Diffstat (limited to 'vespalib/src/tests/util')
-rw-r--r-- | vespalib/src/tests/util/mmap_file_allocator_factory/mmap_file_allocator_factory_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/tests/util/mmap_file_allocator_factory/mmap_file_allocator_factory_test.cpp b/vespalib/src/tests/util/mmap_file_allocator_factory/mmap_file_allocator_factory_test.cpp index 9e822962d10..b9c8a9f82c9 100644 --- a/vespalib/src/tests/util/mmap_file_allocator_factory/mmap_file_allocator_factory_test.cpp +++ b/vespalib/src/tests/util/mmap_file_allocator_factory/mmap_file_allocator_factory_test.cpp @@ -4,6 +4,7 @@ #include <vespa/vespalib/util/mmap_file_allocator.h> #include <vespa/vespalib/util/memory_allocator.h> #include <vespa/vespalib/gtest/gtest.h> +#include <filesystem> using vespalib::alloc::MemoryAllocator; using vespalib::alloc::MmapFileAllocator; @@ -43,7 +44,7 @@ TEST(MmapFileAllocatorFactoryTest, nonempty_dir_gives_allocator) allocator1.reset(); EXPECT_FALSE(isDirectory(allocator1_dir)); MmapFileAllocatorFactory::instance().setup(""); - rmdir(basedir, true); + std::filesystem::remove_all(std::filesystem::path(basedir)); } GTEST_MAIN_RUN_ALL_TESTS() |