]> Cypherpunks repositories - gostls13.git/commit
os: use testenv.Command instead of exec.Command in tests
authorcui fliter <imcusg@gmail.com>
Wed, 16 Nov 2022 14:45:54 +0000 (22:45 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 17 Nov 2022 16:24:19 +0000 (16:24 +0000)
commitf3ae7ac9d90a26e9bba1589ae934e62bf0ac17e0
tree46b6d20afdc2ffad8b9b9fc066edfe383403724c
parent86713ea31116ca295db98713d24c2cea41dcb5be
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: I32ea9ca11c30d8af3d5490f2db1674314962cc80
Reviewed-on: https://go-review.googlesource.com/c/go/+/451195
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Joedian Reid <joedian@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
src/os/executable_test.go
src/os/os_test.go