]> Cypherpunks repositories - gostls13.git/commit
cmd/link: use testenv.Command instead of exec.Command in tests
authorBryan C. Mills <bcmills@google.com>
Tue, 15 Nov 2022 15:21:21 +0000 (10:21 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 15 Nov 2022 20:22:14 +0000 (20:22 +0000)
commit0b82b670ed0ba6826ce8215e816df9c8016df323
tree015f82cb1f085c91b010db5c4047fd8067e0fcab
parent40e1e2e93eaa7d42cc2a3c9ff813710d36cace51
cmd/link: 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: I25a67aa5793c6fa977ff6d4dc59ca1533bf58d41
Reviewed-on: https://go-review.googlesource.com/c/go/+/450702
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
12 files changed:
src/cmd/link/cgo_test.go
src/cmd/link/dwarf_test.go
src/cmd/link/elf_test.go
src/cmd/link/internal/ld/deadcode_test.go
src/cmd/link/internal/ld/dwarf_test.go
src/cmd/link/internal/ld/elf_test.go
src/cmd/link/internal/ld/go_test.go
src/cmd/link/internal/ld/ld_test.go
src/cmd/link/internal/ld/nooptcgolink_test.go
src/cmd/link/internal/ld/stackcheck_test.go
src/cmd/link/link_test.go
src/cmd/link/linkbig_test.go