diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-12-01 18:18:34 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-12-01 18:20:22 -0800 |
commit | eacc335bf91640b413066b5f5803f5964b2b2c99 (patch) | |
tree | ecff9f9da767a9f8905993064da47d7df2b97c6c /gcc/testsuite/go.test | |
parent | 6fbec038f7a7ddf29f074943611b53210d17c40c (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.exp | 2 |
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 |