Skip to content
Snippets Groups Projects
Commit 4b29be72 authored by Torbjörn SVENSSON's avatar Torbjörn SVENSSON
Browse files

testsuite: The expect framework might introduce CR in output


When running tests using the "sim" config, the command is launched in
non-readonly mode and the text retrieved from the expect command will
then replace all LF with CRLF. (The problem can be found in sim_load
where it calls remote_spawn without an input file).

libstdc++-v3/ChangeLog:

	* testsuite/27_io/print/1.cc: Allow both LF and CRLF in test.
	* testsuite/27_io/print/3.cc: Likewise.

Signed-off-by: default avatarTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
parent 4b0ef49d
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ void ...@@ -18,7 +18,7 @@ void
test_println_default() test_println_default()
{ {
std::println("I walk the line"); std::println("I walk the line");
// { dg-output "I walk the line\n" } // { dg-output "I walk the line\r?\n" }
} }
void void
......
...@@ -13,7 +13,7 @@ test_println_blank() ...@@ -13,7 +13,7 @@ test_println_blank()
std::print("1"); std::print("1");
std::println(); std::println();
std::println("2"); std::println("2");
// { dg-output "1\n2" } // { dg-output "1\r?\n2" }
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment