aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-24 22:40:40 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-24 22:40:40 +0200
commit973405018f022dd999645f343dc021d5081a6761 (patch)
tree82bd3b2e91e00d6f04131526049b49b8219ea4e1
parentMerge pull request #5482 (diff)
parentunit_tests: don't delete log file on windows, it will fail (diff)
downloadmonero-973405018f022dd999645f343dc021d5081a6761.tar.xz
Merge pull request #5483
c0736643 unit_tests: don't delete log file on windows, it will fail (moneromooo-monero)
-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)