From 0c2b03650fa64938203441aeb686ccfb29393491 Mon Sep 17 00:00:00 2001 From: badumbatish Date: Wed, 17 Jul 2024 12:00:44 -0700 Subject: [PATCH] Update pattern with \r* for dg-output tests First scan with "rg -v '\\r' gcc/testsuite/rust | rg 'dg-output'" gcc/testsuite/ChangeLog: * rust/execute/torture/issue-2187.rs: Update pattern with \r* for dg-output tests * rust/execute/xfail/macro1.rs: Likewise --- gcc/testsuite/rust/execute/torture/issue-2187.rs | 3 +-- gcc/testsuite/rust/execute/xfail/macro1.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/rust/execute/torture/issue-2187.rs b/gcc/testsuite/rust/execute/torture/issue-2187.rs index b53125750411..08246deba7fa 100644 --- a/gcc/testsuite/rust/execute/torture/issue-2187.rs +++ b/gcc/testsuite/rust/execute/torture/issue-2187.rs @@ -1,4 +1,4 @@ -/* { dg-output "L1\n\L2\nL3\nL4" } */ +/* { dg-output "L1\r*\n\L2\r*\nL3\r*\nL4" } */ extern "C" { fn printf(s: *const i8, ...); } @@ -20,4 +20,3 @@ L4\0"; 0 } - diff --git a/gcc/testsuite/rust/execute/xfail/macro1.rs b/gcc/testsuite/rust/execute/xfail/macro1.rs index eab5a0285cf4..ab71941a231f 100644 --- a/gcc/testsuite/rust/execute/xfail/macro1.rs +++ b/gcc/testsuite/rust/execute/xfail/macro1.rs @@ -1,4 +1,4 @@ -// { dg-output "macro\nmacro\nmacro\nmacro\n" } +// { dg-output "macro\r*\nmacro\r*\nmacro\r*\nmacro\r*\n" } extern "C" { fn printf(s: *const i8, ...); }