Re: Go testsuite patch committed: Don't quote quoted parentheses

2020-12-09 Thread Ian Lance Taylor via Gcc-patches
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

Re: Go testsuite patch committed: Don't quote quoted parentheses

2020-12-09 Thread Andreas Schwab
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

Go testsuite patch committed: Don't quote quoted parentheses

2020-12-07 Thread Ian Lance Taylor via Gcc-patches
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