]> Cypherpunks repositories - gostls13.git/commit
cmd/cover: use testenv.Command instead of exec.Command
authorBryan C. Mills <bcmills@google.com>
Tue, 15 Nov 2022 14:48:07 +0000 (09:48 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 15 Nov 2022 20:17:59 +0000 (20:17 +0000)
commit9754bc7bb75fad4c645fa8057789c843ff537d81
tree0c394900e9fde19eb279ef785471c12c96a6fd28
parenta171f3fe49f8c5aa96189a822dbb8e3ef6900f91
cmd/cover: use testenv.Command instead of exec.Command

testenv.Command sets a default timeout based on the test's deadline
and sends SIGQUIT (where supported) in case of a hang.

Change-Id: Ic19f8b020f6d410942bb2ece8a3b71607ee6488a
Reviewed-on: https://go-review.googlesource.com/c/go/+/450695
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/covdata/tool_test.go
src/cmd/cover/cfg_test.go
src/cmd/cover/cover_test.go