aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/logging.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-23 15:27:31 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-23 15:27:54 +0000
commitc07366430ab2dac40777cd809b8f3ed0787d0305 (patch)
tree213aa2bb013bb8d922eb1a34b783de201ea8df33 /tests/unit_tests/logging.cpp
parentMerge pull request #5466 (diff)
downloadmonero-c07366430ab2dac40777cd809b8f3ed0787d0305.tar.xz
unit_tests: don't delete log file on windows, it will fail
Diffstat (limited to 'tests/unit_tests/logging.cpp')
-rw-r--r--tests/unit_tests/logging.cpp3
1 files changed, 3 insertions, 0 deletions
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)