]> Cypherpunks repositories - gostls13.git/commit
cmd/cover: use -toolexec in tests to run newly built cover program
authorIan Lance Taylor <iant@golang.org>
Thu, 6 Dec 2018 22:08:19 +0000 (14:08 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 18 Dec 2018 20:55:57 +0000 (20:55 +0000)
commit77caea5bf2c5103a81283d9fb5b7ca030b884af2
tree26add223eee8250ec2a4e126471c8af4974998ec
parentd063b7c6d342815f196c183693e2300ac3925334
cmd/cover: use -toolexec in tests to run newly built cover program

This ensures that "go test cmd/cover" tests the current cover program,
not the installed cover program.

Change-Id: I58e718ded7eb1cd8da448d0194262209bb025b20
Reviewed-on: https://go-review.googlesource.com/c/153058
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/cover/cover_test.go
src/cmd/cover/testdata/toolexec.go [new file with mode: 0644]