summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-12-01 18:18:34 -0800
committerIan Lance Taylor <iant@golang.org>2020-12-01 18:20:22 -0800
commiteacc335bf91640b413066b5f5803f5964b2b2c99 (patch)
treeecff9f9da767a9f8905993064da47d7df2b97c6c /gcc/testsuite/go.test
parent6fbec038f7a7ddf29f074943611b53210d17c40c (diff)
go-test.exp: permit trailing */ on ERROR line
* go.test/go-test.exp (errchk): Permit trailing */ on ERROR line.
Diffstat (limited to 'gcc/testsuite/go.test')
-rw-r--r--gcc/testsuite/go.test/go-test.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index 51f9b381d67..067f309a296 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -105,7 +105,7 @@ proc errchk { test opts } {
set copy_line $out_line
}
- regsub "// \(GCCGO_\)?ERROR \"\(\[^\"\]*\)\".*$" $copy_line "// \{ dg-error \"\\2\" \}" out_line
+ regsub "// \(GCCGO_\)?ERROR \"\(\[^\"\]*\)\" *\(\\*/\)?$" $copy_line "// \{ dg-error \"\\2\" \}\\3" 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