Fix line terminator pattern in testcase.
authorSandra Loosemore <sandra@codesourcery.com>
Tue, 21 Jan 2020 19:20:45 +0000 (11:20 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Tue, 21 Jan 2020 19:20:45 +0000 (11:20 -0800)
I observed this testcase was failing on nios2-elf.  The more general
regexp was copied from other tests using dg-output.

2020-01-21  Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
* g++.dg/coroutines/torture/mid-suspend-destruction-0.C: Generalize
line terminators in patterns.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/coroutines/torture/mid-suspend-destruction-0.C

index 4bea57e3968b931f961bc2b75c81ab4b09011825..b164f3156c7bab15d77eaf27d835530b53aa81fb 100644 (file)
@@ -1,3 +1,8 @@
+2020-01-21  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * g++.dg/coroutines/torture/mid-suspend-destruction-0.C: Generalize
+       line terminators in patterns.
+
 2020-01-21  Richard Sandiford  <richard.sandiford@arm.com>
 
        * gcc.target/aarch64/sve/acle/general-c/load_1.c (f1): Cast to
index 934fb19de7d26bcc6759909e10dc808aef2823d7..505bfa336622c7ff84fb0dfd376b46faed861d91 100644 (file)
@@ -1,8 +1,8 @@
 // { dg-do run }
-// { dg-output "main: returning\n" }
-// { dg-output "Destroyed coro1\n" }
-// { dg-output "Destroyed suspend_always_prt\n" }
-// { dg-output "Destroyed Promise\n" }
+// { dg-output "main: returning(\n|\r\n|\r)" }
+// { dg-output "Destroyed coro1(\n|\r\n|\r)" }
+// { dg-output "Destroyed suspend_always_prt(\n|\r\n|\r)" }
+// { dg-output "Destroyed Promise(\n|\r\n|\r)" }
 
 // Check that we still get the right DTORs run when we let a suspended coro
 // go out of scope.