From f4fbeead0ef83782d68869ed5863627e806002d9 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 7 Feb 2024 20:56:05 +0100 Subject: [PATCH] Workaround for Windows tests --- test_core/TestDuplicateSearch.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/test_core/TestDuplicateSearch.cpp b/test_core/TestDuplicateSearch.cpp index d65fc2d..e39408a 100644 --- a/test_core/TestDuplicateSearch.cpp +++ b/test_core/TestDuplicateSearch.cpp @@ -46,7 +46,8 @@ TEST_CASE ("Name") { CHECK(groups == expectedGroups); - std::filesystem::remove_all(temp); + std::error_code ec; + std::filesystem::remove_all(temp, ec); } TEST_CASE ("Size") { @@ -73,7 +74,8 @@ TEST_CASE ("Size") { CHECK(groups == expectedGroups); - std::filesystem::remove_all(temp); + std::error_code ec; + std::filesystem::remove_all(temp, ec); } TEST_CASE ("Head") { @@ -98,7 +100,8 @@ TEST_CASE ("Head") { CHECK(groups == expectedGroups); - std::filesystem::remove_all(temp); + std::error_code ec; + std::filesystem::remove_all(temp, ec); } TEST_CASE ("Hash") { @@ -133,7 +136,8 @@ TEST_CASE ("Hash") { CHECK(groups == expectedGroups); - std::filesystem::remove_all(temp); + std::error_code ec; + std::filesystem::remove_all(temp, ec); } TEST_CASE ("StandardAlgorithmsRecurrent") { @@ -189,5 +193,6 @@ TEST_CASE ("StandardAlgorithmsRecurrent") { CHECK(groups == expectedGroups); - std::filesystem::remove_all(temp); + std::error_code ec; + std::filesystem::remove_all(temp, ec); } \ No newline at end of file