coretests: fixed data folder clearing in Linux

This commit is contained in:
sowle 2019-11-07 14:06:30 +03:00
parent d294c123a2
commit 07ebf54e86
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -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());