diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2017-04-18 08:39:00 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2017-04-18 22:57:34 +0000 |
| commit | 2e45310caff101ea7de8873523faab96eb3a87ca (patch) | |
| tree | 0971d5d291b2df54a6d50353b9b7a4e48f3c5d0e /src/cmd | |
| parent | 2463a49ebb5e3b065609555ca81757b30062d912 (diff) | |
| download | go-2e45310caff101ea7de8873523faab96eb3a87ca.tar.xz | |
cmd/vet: make tests safe for perl 5.26
Someday we should write errchk in Go. But not today.
Fixes #20007
Change-Id: I61ccf3cfaa66a710782f8a2212a6a2b4040698da
Reviewed-on: https://go-review.googlesource.com/40950
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/vet/testdata/copylock_func.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/vet/testdata/copylock_func.go b/src/cmd/vet/testdata/copylock_func.go index d51ff27cda..0f7ffcbccb 100644 --- a/src/cmd/vet/testdata/copylock_func.go +++ b/src/cmd/vet/testdata/copylock_func.go @@ -87,9 +87,9 @@ func FuncCallInterfaceArg(f func(a int, b interface{})) { f(2, &t) f(3, &sync.Mutex{}) f(4, m) // ERROR "call of f copies lock value: sync.Mutex" - f(5, t) // ERROR "call of f copies lock value: struct{lock sync.Mutex} contains sync.Mutex" + f(5, t) // ERROR "call of f copies lock value: struct.lock sync.Mutex. contains sync.Mutex" var fntab []func(t) - fntab[0](t) // ERROR "call of fntab.0. copies lock value: struct{lock sync.Mutex} contains sync.Mutex" + fntab[0](t) // ERROR "call of fntab.0. copies lock value: struct.lock sync.Mutex. contains sync.Mutex" } // Returning lock via interface value @@ -105,7 +105,7 @@ func ReturnViaInterface(x int) (int, interface{}) { case 2: return 2, m // ERROR "return copies lock value: sync.Mutex" default: - return 3, t // ERROR "return copies lock value: struct{lock sync.Mutex} contains sync.Mutex" + return 3, t // ERROR "return copies lock value: struct.lock sync.Mutex. contains sync.Mutex" } } |
