aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2023-01-26 16:01:09 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2023-01-26 16:01:09 +0000
commita2dddefeed258119fc24d288b697d58da9e8b7e3 (patch)
treed8dd773e9eaac24241286b7af60f195a91e5bb3a /gcc
parent96fbe541481fcc7d1a8884fb8dbefd7979eb9543 (diff)
downloadgcc-a2dddefeed258119fc24d288b697d58da9e8b7e3.zip
gcc-a2dddefeed258119fc24d288b697d58da9e8b7e3.tar.gz
gcc-a2dddefeed258119fc24d288b697d58da9e8b7e3.tar.bz2
testsuite: Fix hwasan/arguments-3.c failures
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. gcc/testsuite/ * c-c++-common/hwasan/arguments-3.c: Remove extraneous .*s.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/c-c++-common/hwasan/arguments-3.c6
1 files 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 2bf8917..6dbec92 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 } */