[PATCH] testsuite: The expect framework might introduce CR in output
Jonathan Wakely
jwakely.gcc@gmail.com
Sat Jan 11 19:05:25 GMT 2025
On Sat, 11 Jan 2025, 18:31 Torbjörn SVENSSON, <torbjorn.svensson@foss.st.com>
wrote:
> Ok for trunk and releases/gcc-14?
>
OK, thanks
> --
>
> 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:
>
> * 27_io/print/1.cc: Allow both LF and CRLF in test.
>
> Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
> ---
> libstdc++-v3/testsuite/27_io/print/1.cc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libstdc++-v3/testsuite/27_io/print/1.cc
> b/libstdc++-v3/testsuite/27_io/print/1.cc
> index f6585d9880a..2a74e5002f4 100644
> --- a/libstdc++-v3/testsuite/27_io/print/1.cc
> +++ b/libstdc++-v3/testsuite/27_io/print/1.cc
> @@ -18,7 +18,7 @@ void
> test_println_default()
> {
> std::println("I walk the line");
> - // { dg-output "I walk the line\n" }
> + // { dg-output "I walk the line\r?\n" }
> }
>
> void
> --
> 2.25.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20250111/eb3123ef/attachment-0001.htm>
More information about the Libstdc++
mailing list