WIP: small patch avoiding generation of freaky files with fake-windows paths on Linux

This commit is contained in:
Matthias Koefferlein 2022-08-16 22:15:21 +02:00
parent 46364c2420
commit 9ee5730b60
1 changed files with 2 additions and 0 deletions

View File

@ -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.";
}