diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-06-02 15:10:46 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-06-02 15:10:46 +0200 |
commit | d8db0245a5aad9fbc0568bb11db99d9c5394d1a5 (patch) | |
tree | c05f7bd6065b7c77c7f7c98c0fadb02bbc8f7898 /searchcore/src/tests/proton/attribute | |
parent | d28745bcca2737bd716fb001a1417cdfb1febd96 (diff) |
Remove most use of vespalib::rmdir in searchlib.
Diffstat (limited to 'searchcore/src/tests/proton/attribute')
3 files changed, 4 insertions, 4 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_initializer/attribute_initializer_test.cpp b/searchcore/src/tests/proton/attribute/attribute_initializer/attribute_initializer_test.cpp index 93cb456cc06..3016815a89c 100644 --- a/searchcore/src/tests/proton/attribute/attribute_initializer/attribute_initializer_test.cpp +++ b/searchcore/src/tests/proton/attribute/attribute_initializer/attribute_initializer_test.cpp @@ -67,7 +67,7 @@ saveAttr(const vespalib::string &name, const Config &cfg, SerialNum serialNum, S auto writer = dir->getWriter(); writer->createInvalidSnapshot(serialNum); auto snapshotdir = writer->getSnapshotDir(serialNum); - vespalib::mkdir(snapshotdir); + std::filesystem::create_directory(std::filesystem::path(snapshotdir)); auto av = search::AttributeFactory::createAttribute(snapshotdir + "/" + name, cfg); av->setCreateSerialNum(createSerialNum); av->addReservedDoc(); @@ -245,6 +245,6 @@ TEST("require that transient memory usage is reported for attribute load without TEST_MAIN() { - vespalib::rmdir(test_dir, true); + std::filesystem::remove_all(std::filesystem::path(test_dir)); TEST_RUN_ALL(); } diff --git a/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp b/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp index b446ca367c0..95f0cff088d 100644 --- a/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp +++ b/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp @@ -869,6 +869,6 @@ TEST_F("require that shrink flushtarget is handed over to new attribute manager" TEST_MAIN() { - vespalib::rmdir(test_dir, true); + std::filesystem::remove_all(std::filesystem::path(test_dir)); TEST_RUN_ALL(); } diff --git a/searchcore/src/tests/proton/attribute/attribute_populator/attribute_populator_test.cpp b/searchcore/src/tests/proton/attribute/attribute_populator/attribute_populator_test.cpp index 0d09d45c33a..c66b2dd15dc 100644 --- a/searchcore/src/tests/proton/attribute/attribute_populator/attribute_populator_test.cpp +++ b/searchcore/src/tests/proton/attribute/attribute_populator/attribute_populator_test.cpp @@ -115,6 +115,6 @@ TEST_F("require that reprocess with document populates attribute", Fixture) TEST_MAIN() { - vespalib::rmdir(TEST_DIR, true); + std::filesystem::remove_all(std::filesystem::path(TEST_DIR)); TEST_RUN_ALL(); } |