diff --git a/Apollonius_graph_2/test/Apollonius_graph_2/include/test.h b/Apollonius_graph_2/test/Apollonius_graph_2/include/test.h index 69064b0c781..680b69e4a64 100644 --- a/Apollonius_graph_2/test/Apollonius_graph_2/include/test.h +++ b/Apollonius_graph_2/test/Apollonius_graph_2/include/test.h @@ -4,6 +4,7 @@ #include #include #include +#include #include // this is done in order to avoid error // when the Segment_2_Segment_2_intersection.h file is included from @@ -839,24 +840,29 @@ bool test_algo_generic(InputStream& is) // file I/O methods //-------------------------------------------------------------------- { - std::ofstream ofs("ag_testsuite.tmp"); + std::string fname = "ag_testsuite_" + std::to_string(CGAL::Random().get_seed()) + ".tmp"; + std::cout << "writing to " << fname << std::endl; + + std::ofstream ofs(fname); assert( ofs ); ag.file_output(ofs); ofs.close(); - std::ifstream ifs("ag_testsuite.tmp"); + std::ifstream ifs(fname); assert( ifs ); ag.file_input(ifs); ifs.close(); assert( ag.is_valid() ); } { - std::ofstream ofs("ag_testsuite.tmp"); + std::string fname = "ag_testsuite_" + std::to_string(CGAL::Random().get_seed()) + ".tmp"; + std::cout << "writing to " << fname << std::endl; + std::ofstream ofs(fname); assert( ofs ); ofs << ag; ofs.close(); - std::ifstream ifs("ag_testsuite.tmp"); + std::ifstream ifs(fname); assert( ifs ); ifs >> ag; ifs.close();