]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: The expect framework might introduce CR in output
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Sat, 11 Jan 2025 18:16:57 +0000 (19:16 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Sun, 12 Jan 2025 07:36:02 +0000 (08:36 +0100)
commitf43a6bd08797eae0243b4110b2fbd4700a349ce7
treea7137bc7f23b1625f867712bf22129fd43da41ab
parentd82fc939f914e901b2686bb25b277cb75d4ea53f
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: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
(cherry picked from commit 4b29be7216daa5921aae340388ef6416b1631f0a)
libstdc++-v3/testsuite/27_io/print/1.cc
libstdc++-v3/testsuite/27_io/print/3.cc