]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: eliminate use of Perl in tests
authorYury Smolsky <yury@smolsky.by>
Tue, 22 May 2018 19:37:40 +0000 (22:37 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 28 May 2018 17:08:33 +0000 (17:08 +0000)
commit68de5508d374c910cc0bf066b8f65cd5395115b1
tree3d7a2982600975dee5bc39c2a9ca0b9bdee35fbb
parent4fe688c6a49e59e852f0bfebbb4cf71366987ce7
cmd/vet: eliminate use of Perl in tests

This change uses errorCheck and wantedErrors functions copied from
the test/run.go to eliminate use of the test/errchk perl script.

Tests' error messages that contained full filenames were changed to
have base filenames because the errorCheck function processes output
from "go vet" in the same way.

Fixes #20032.

Change-Id: Ieb7be67c2d7281b9648171c698398449b7e2d4dd
Reviewed-on: https://go-review.googlesource.com/114176
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/cmd/vet/testdata/atomic.go
src/cmd/vet/testdata/shadow.go
src/cmd/vet/testdata/structtag.go
src/cmd/vet/vet_test.go