* [PATCH] testsuite: Fix hwasan/arguments-3.c failures
@ 2023-01-26 16:02 Richard Sandiford
0 siblings, 0 replies; only message in thread
From: Richard Sandiford @ 2023-01-26 16:02 UTC (permalink / raw)
To: gcc-patches
This testcase had three dg-error tests for ".*<message>.*".
But since . matches \n in Tcl regexps, the first dg-error
ate all the output, leaving the other two to fail.
The regexp is eventually embedded in a larger one, so we
can't prefix it with (?n). But the .*s aren't necessary,
since dg-error tests for a partial rather than a full match.
Tested on aarch64-linux-gnu & pushed as obvious.
Richard
gcc/testsuite/
* c-c++-common/hwasan/arguments-3.c: Remove extraneous .*s.
---
gcc/testsuite/c-c++-common/hwasan/arguments-3.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/testsuite/c-c++-common/hwasan/arguments-3.c b/gcc/testsuite/c-c++-common/hwasan/arguments-3.c
index 2bf8917355b..6dbec924e2b 100644
--- a/gcc/testsuite/c-c++-common/hwasan/arguments-3.c
+++ b/gcc/testsuite/c-c++-common/hwasan/arguments-3.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
/* { dg-additional-options "-fsanitize=thread,address" } */
-/* { dg-error ".*'-fsanitize=thread' is incompatible with '-fsanitize=address'.*" "" { target *-*-* } 0 } */
-/* { dg-error ".*'-fsanitize=thread' is incompatible with '-fsanitize=hwaddress'.*" "" { target *-*-* } 0 } */
-/* { dg-error ".*'-fsanitize=hwaddress' is incompatible with '-fsanitize=address'.*" "" { target *-*-* } 0 } */
+/* { dg-error "'-fsanitize=thread' is incompatible with '-fsanitize=address'" "" { target *-*-* } 0 } */
+/* { dg-error "'-fsanitize=thread' is incompatible with '-fsanitize=hwaddress'" "" { target *-*-* } 0 } */
+/* { dg-error "'-fsanitize=hwaddress' is incompatible with '-fsanitize=address'" "" { target *-*-* } 0 } */
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-26 16:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 16:02 [PATCH] testsuite: Fix hwasan/arguments-3.c failures Richard Sandiford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).