diff --git a/src/tl/unit_tests/tlStreamTests.cc b/src/tl/unit_tests/tlStreamTests.cc index f55d53fd7..c41e1a918 100644 --- a/src/tl/unit_tests/tlStreamTests.cc +++ b/src/tl/unit_tests/tlStreamTests.cc @@ -89,6 +89,7 @@ TEST(TextOutputStream) tl::file_utils_force_linux (); { + tl::rm_file (fn); // avoids trouble with wrong path delimeters and backup files tl::OutputStream os (fn, tl::OutputStream::OM_Auto, true); os << "Hello, world!\nWith another line\n\r\r\nseparated by a LFCR and CRLF."; } @@ -109,6 +110,7 @@ TEST(TextOutputStream) tl::file_utils_force_windows (); { + tl::rm_file (fn); // avoids trouble with wrong path delimeters and backup files tl::OutputStream os (fn, tl::OutputStream::OM_Auto, true); os << "Hello, world!\nWith another line\n\r\r\nseparated by a LFCR and CRLF."; }