]> Cypherpunks.ru repositories - gostls13.git/commit
os: use testenv.Command and os.Executable in tests
authorBryan C. Mills <bcmills@google.com>
Tue, 22 Aug 2023 15:32:20 +0000 (11:32 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 23 Aug 2023 19:03:28 +0000 (19:03 +0000)
commit738d2d9068492dfb81dc350db005fdd52f2481b6
tree828931074e2bdc1fe4a4f5d301ac30a45891ac5e
parentf92741b1d82316db15516b82e3812e262202de40
os: use testenv.Command and os.Executable in tests

On Unix platforms, testenv.Command sends SIGQUIT to stuck commands
before the test times out. For subprocesses that are written in Go,
that causes the runtime to dump running goroutines, and in other
languages it triggers similar behavior (such as a core dump).
If the subprocess is stuck due to a bug (such as #57999), that may
help to diagnose it.

For #57999.

Change-Id: I00f381b8052cbbb1a7eea90e7f102a3f68c842d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/521817
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
src/os/signal/signal_cgo_test.go
src/os/signal/signal_test.go