1
0
mirror of https://github.com/golang/go synced 2024-11-23 00:40:08 -07:00
go/misc
Ian Lance Taylor 9d669ed47a misc/cgo/errors: use expected column numbers
The test was using the wrong column numbers, and was erroneously
passing because there happened to be line numbers that matched those
column numbers. Change the test harness to require the expected line
number for the ERROR HERE regexp case, so that this doesn't happen again.

Also rename a couple of variables in the test to avoid useless
redeclaration errors.

Fixes #46534

Change-Id: I2fcbf5e379c346de5346035c73d174a3980c0927
Reviewed-on: https://go-review.googlesource.com/c/go/+/324970
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2021-06-05 04:40:03 +00:00
..
android all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
arm
cgo misc/cgo/errors: use expected column numbers 2021-06-05 04:40:03 +00:00
chrome/gophertool docs: fix case of GitHub 2021-03-05 02:35:21 +00:00
ios all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
linkcheck all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
reboot all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
swig
trace all: use HTML5 br tags 2021-03-13 03:38:42 +00:00
wasm misc/wasm: ensure correct stack pointer in catch clauses 2021-05-24 22:12:19 +00:00
editors
go.mod