Merge pull request #5483

c0736643 unit_tests: don't delete log file on windows, it will fail (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2019-04-24 22:40:40 +02:00
commit 973405018f
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -44,7 +44,10 @@ static void init()
static void cleanup() 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); boost::filesystem::remove(log_filename);
#endif
} }
static size_t nlines(const std::string &str) static size_t nlines(const std::string &str)