]> Cypherpunks.ru repositories - gostls13.git/commit
os: use testenv.Command instead of exec.Command in tests
authorcui fliter <imcusg@gmail.com>
Fri, 18 Nov 2022 06:06:56 +0000 (14:06 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 21 Feb 2023 23:07:55 +0000 (23:07 +0000)
commitdd87e33d88eadaf5302895fb91b0a0e2e16b136e
treebc87d8e3a3291c51a7046009ff9ba4205f707450
parent34e701ece2138ebb8276c2d413a6ea1ee1ed84a4
os: 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: I84d469d12ca1f39175b713ca41e7cd2202d11d96
Reviewed-on: https://go-review.googlesource.com/c/go/+/451895
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/os/exec/exec_test.go
src/os/exec/exec_windows_test.go
src/os/exec/lp_windows_test.go
src/os/signal/signal_test.go
src/os/signal/signal_windows_test.go