public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-5828] go-test.exp: don't quote already-quoted parentheses
@ 2020-12-07 17:36 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2020-12-07 17:36 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:16a2a458809103d1c382c09c62b09697aac9b935
commit r11-5828-g16a2a458809103d1c382c09c62b09697aac9b935
Author: Ian Lance Taylor <iant@golang.org>
Date: Mon Dec 7 09:36:15 2020 -0800
go-test.exp: don't quote already-quoted parentheses
* go.test/go-test.exp (errchk): Don't backslash quote parentheses
that are already backslash quoted.
Diff:
---
gcc/testsuite/go.test/go-test.exp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index 8f17cb3db71..d129e1c65da 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -131,11 +131,11 @@ proc errchk { test opts } {
set index [string first "dg-error" $out_line]
regsub -start $index -all "\(\[^\\\\]\)\}\(.\)" $out_line "\\1\\\\\[\\\}\\\\\]\\2" out_line
}
- if [string match "*dg-error*\(*" $out_line] {
+ if [string match "*dg-error*\\\[^\\\\\]\(*" $out_line] {
set index [string first "dg-error" $out_line]
regsub -start $index -all "\\\\\\\(" $out_line "\\\\\[\\\(\\\\\]" out_line
}
- if [string match "*dg-error*\)*\}" $out_line] {
+ if [string match "*dg-error*\\\[^\\\\\]\)*\}" $out_line] {
set index [string first "dg-error" $out_line]
regsub -start $index -all "\\\\\\\)\(.\)" $out_line "\\\\\[\\\)\\\\\]\\1" out_line
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-07 17:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 17:36 [gcc r11-5828] go-test.exp: don't quote already-quoted parentheses Ian Lance Taylor
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).