From 8b57548de9836fce3663b99d0140146f12668e8c Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 17 Apr 2025 16:56:57 +0200 Subject: FileSystemManager: Always remove directories recursively --- test/buildtool/execution_engine/executor/executor_api.test.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/buildtool/execution_engine/executor') diff --git a/test/buildtool/execution_engine/executor/executor_api.test.hpp b/test/buildtool/execution_engine/executor/executor_api.test.hpp index 2043da88..ff4c4999 100644 --- a/test/buildtool/execution_engine/executor/executor_api.test.hpp +++ b/test/buildtool/execution_engine/executor/executor_api.test.hpp @@ -479,7 +479,7 @@ static inline void TestUploadAndDownloadTrees( CHECK(FileSystemManager::IsNonUpwardsSymlink(tmpdir / "b")); CHECK(*FileSystemManager::ReadFile(tmpdir / "a") == "foo"); CHECK(*FileSystemManager::ReadSymlink(tmpdir / "b") == "bar"); - REQUIRE(FileSystemManager::RemoveDirectory(tmpdir, true)); + REQUIRE(FileSystemManager::RemoveDirectory(tmpdir)); } SECTION("Subdir in tree path") { @@ -496,7 +496,7 @@ static inline void TestUploadAndDownloadTrees( CHECK(FileSystemManager::IsNonUpwardsSymlink(tmpdir / "b" / "a")); CHECK(*FileSystemManager::ReadFile(tmpdir / "a") == "foo"); CHECK(*FileSystemManager::ReadSymlink(tmpdir / "b" / "a") == "bar"); - REQUIRE(FileSystemManager::RemoveDirectory(tmpdir, true)); + REQUIRE(FileSystemManager::RemoveDirectory(tmpdir)); } SECTION("Nested trees") { @@ -517,7 +517,7 @@ static inline void TestUploadAndDownloadTrees( CHECK(FileSystemManager::IsNonUpwardsSymlink(tmpdir / "b" / "a")); CHECK(*FileSystemManager::ReadFile(tmpdir / "a") == "foo"); CHECK(*FileSystemManager::ReadSymlink(tmpdir / "b" / "a") == "bar"); - REQUIRE(FileSystemManager::RemoveDirectory(tmpdir, true)); + REQUIRE(FileSystemManager::RemoveDirectory(tmpdir)); } SECTION("Dot-path tree as action input") { @@ -550,7 +550,7 @@ static inline void TestUploadAndDownloadTrees( CHECK(FileSystemManager::IsNonUpwardsSymlink(tmpdir / "b" / "a")); CHECK(*FileSystemManager::ReadFile(tmpdir / "a") == "foo"); CHECK(*FileSystemManager::ReadSymlink(tmpdir / "b" / "a") == "bar"); - REQUIRE(FileSystemManager::RemoveDirectory(tmpdir, true)); + REQUIRE(FileSystemManager::RemoveDirectory(tmpdir)); } SECTION("Dot-path non-tree as action input") { -- cgit v1.2.3