diff --git a/src/tests/main.cpp b/src/tests/main.cpp index 85445fe3f9b..3321e47d431 100644 --- a/src/tests/main.cpp +++ b/src/tests/main.cpp @@ -61,7 +61,8 @@ std::ofstream reporter; struct wesnoth_global_fixture { wesnoth_global_fixture() { - using namespace boost::unit_test; using namespace std::literals; + using namespace boost::unit_test; + using namespace std::literals; boost::filesystem::path file("boost_test_result.xml"); for(int i = 1; i < framework::master_test_suite().argc; i++) { if(framework::master_test_suite().argv[i - 1] == "--output_file"s) { @@ -70,7 +71,7 @@ struct wesnoth_global_fixture { } } - reporter.open(file.c_str()); + reporter.open(file.string()); assert( reporter.is_open() ); results_reporter::set_stream(reporter);