diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-24 22:40:40 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-24 22:40:40 +0200 |
commit | 973405018f022dd999645f343dc021d5081a6761 (patch) | |
tree | 82bd3b2e91e00d6f04131526049b49b8219ea4e1 | |
parent | Merge pull request #5482 (diff) | |
parent | unit_tests: don't delete log file on windows, it will fail (diff) | |
download | monero-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.cpp | 3 |
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) |