unit_tests: fix data dir determination

This commit is contained in:
moneromooo-monero 2017-10-24 10:22:46 +01:00
parent 8d511f3c24
commit 110339f553
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ int main(int argc, char** argv)
return 1;
if (vm["data-dir"].defaulted())
unit_test::data_dir = boost::filesystem::path(epee::string_tools::get_current_module_folder())
unit_test::data_dir = boost::filesystem::canonical(boost::filesystem::path(epee::string_tools::get_current_module_folder()))
.parent_path().parent_path().parent_path().parent_path()
.append("tests").append("data");
else