From: Ian Lance Taylor Date: Wed, 2 Dec 2020 02:18:34 +0000 (-0800) Subject: go-test.exp: permit trailing */ on ERROR line X-Git-Tag: basepoints/gcc-12~2619 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eacc335bf91640b413066b5f5803f5964b2b2c99;p=thirdparty%2Fgcc.git go-test.exp: permit trailing */ on ERROR line * go.test/go-test.exp (errchk): Permit trailing */ on ERROR line. --- diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp index 51f9b381d677..067f309a2962 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