From 07ebf54e86355b5dfb06d4e0d9a1d502107b3c3e Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 7 Nov 2019 14:06:30 +0300 Subject: [PATCH] coretests: fixed data folder clearing in Linux --- tests/core_tests/chaingen_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core_tests/chaingen_main.cpp b/tests/core_tests/chaingen_main.cpp index c2be845e..30cbeaa4 100644 --- a/tests/core_tests/chaingen_main.cpp +++ b/tests/core_tests/chaingen_main.cpp @@ -63,7 +63,7 @@ bool clean_data_directory() for(auto& entry : boost::make_iterator_range(boost::filesystem::directory_iterator(config_folder), {})) { - const std::string& fn_str = entry.path().filename().string(); + std::string fn_str = entry.path().filename().string(); if (files.count(fn_str) != 0) { entries_to_remove.push_back(entry.path());