On Wed, Dec 9, 2020 at 2:39 AM Andreas Schwab wrote:
>
> This breaks make -C gcc check-go RUNTESTFLAGS="go-test.exp=chan.go":
>
> ERROR: tcl error sourcing
> /opt/gcc/gcc-20201209/gcc/testsuite/go.test/go-test.exp.
> ERROR: couldn't compile regular expression pattern: parentheses () not
> balanc
This breaks make -C gcc check-go RUNTESTFLAGS="go-test.exp=chan.go":
ERROR: tcl error sourcing
/opt/gcc/gcc-20201209/gcc/testsuite/go.test/go-test.exp.
ERROR: couldn't compile regular expression pattern: parentheses () not balanced
while executing
"regsub -all "(^|\n)(\[^\n\]+$line\[^\n\]*($p
This patch fixes go-test.exp to not backslash quote parentheses that
are already backslash quoted. This regexp quoting isn't fully
general, it just has to handle the cases that arise in the testsuite.
This change fixes a case in a new test, not yet committed. (It would
be nice to have a general f