diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-23 15:27:31 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-23 15:27:54 +0000 |
commit | c07366430ab2dac40777cd809b8f3ed0787d0305 (patch) | |
tree | 213aa2bb013bb8d922eb1a34b783de201ea8df33 /tests/unit_tests/logging.cpp | |
parent | Merge pull request #5466 (diff) | |
download | monero-c07366430ab2dac40777cd809b8f3ed0787d0305.tar.xz |
unit_tests: don't delete log file on windows, it will fail
Diffstat (limited to '')
-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) |