From 9ee5730b6083ae917493dc9663514a88566f229c Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Tue, 16 Aug 2022 22:15:21 +0200 Subject: [PATCH] WIP: small patch avoiding generation of freaky files with fake-windows paths on Linux --- src/tl/unit_tests/tlStreamTests.cc | 2 ++ 1 file changed, 2 insertions(+) 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."; }