From c07366430ab2dac40777cd809b8f3ed0787d0305 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 23 Apr 2019 15:27:31 +0000 Subject: [PATCH] unit_tests: don't delete log file on windows, it will fail --- tests/unit_tests/logging.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit_tests/logging.cpp b/tests/unit_tests/logging.cpp index 12d49e2fb..056eae604 100644 --- a/tests/unit_tests/logging.cpp +++ b/tests/unit_tests/logging.cpp @@ -44,7 +44,10 @@ static void init() static void cleanup() { + // windows does not let files be deleted if still in use, so leave droppings there +#ifndef _WIN32 boost::filesystem::remove(log_filename); +#endif } static size_t nlines(const std::string &str)