diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-12-07 09:36:15 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-12-07 09:36:15 -0800 |
commit | 16a2a458809103d1c382c09c62b09697aac9b935 (patch) | |
tree | dafa821c25b5f6606373265a3b7714dae0747058 | |
parent | e9104775e3beceab247050733da97fbba5341cb7 (diff) | |
download | gcc-16a2a458809103d1c382c09c62b09697aac9b935.zip gcc-16a2a458809103d1c382c09c62b09697aac9b935.tar.gz gcc-16a2a458809103d1c382c09c62b09697aac9b935.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/go.test/go-test.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp index 8f17cb3..d129e1c 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 } |