From ab269e8eee1c0bc837f3940f6dda25f66842ba69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ag=C3=BCero?= Date: Thu, 29 Aug 2024 01:00:30 +0200 Subject: [PATCH] Note about removeAll on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Agüero --- src/Console_TEST.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Console_TEST.cc b/src/Console_TEST.cc index 922c9f5e..eac69666 100644 --- a/src/Console_TEST.cc +++ b/src/Console_TEST.cc @@ -90,6 +90,9 @@ TEST_F(Console_TEST, NoInitAndLog) std::string path; EXPECT_TRUE(common::env(GZ_HOMEDIR, path)); path = common::joinPaths(path, logPath); + + // This is causing an issue on Windows as the resource is busy, + // probably locked by spdlog. common::removeAll(path); } @@ -120,6 +123,9 @@ TEST_F(Console_TEST, InitAndLog) // Cleanup gzLogClose(); + + // This is causing an issue on Windows as the resource is busy, + // probably locked by spdlog. common::removeAll(basePath); }