]> Cypherpunks repositories - gostls13.git/commit
cmd/go: use testenv.Command instead of exec.Command in tests
authorBryan C. Mills <bcmills@google.com>
Tue, 15 Nov 2022 15:08:11 +0000 (10:08 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 15 Nov 2022 20:21:26 +0000 (20:21 +0000)
commitc9f7370a096a8b5c2db5996b8b6adbad4e2747d5
tree1e11f62c12a20f213ca4c53295a79da07aa5ad48
parent2cb103ff58aab6a02cf94cebdb7c20d1e518f1ed
cmd/go: use testenv.Command instead of exec.Command in tests

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

Change-Id: Ic19172b6cd05526cf6776b904e2dfebdd8b055a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/450697
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/go/go_test.go
src/cmd/go/go_windows_test.go
src/cmd/go/init_test.go
src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go
src/cmd/go/internal/lockedfile/lockedfile_test.go
src/cmd/go/scriptreadme_test.go