]> Cypherpunks repositories - gostls13.git/commit
cmd/go: in TestScript, set GOTRACEBACK and use SIGQUIT to terminate hung subprocesses
authorBryan C. Mills <bcmills@google.com>
Thu, 8 Apr 2021 21:16:13 +0000 (17:16 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 9 Apr 2021 14:36:20 +0000 (14:36 +0000)
commit77b3269fb57d2f5c19a76a80f1d215dc801be3b7
tree5dc75c16fb923c0200b346e8f39a3834009f4015
parenta690a5d75fee3b23e9ab80bd7b48cafb52ce4615
cmd/go: in TestScript, set GOTRACEBACK and use SIGQUIT to terminate hung subprocesses

This should produce more useful outputs if a cmd/go invocation hangs
during a test.

(In some cases the outputs will be very verbose, but verbose is still
better than uninformative.)

For #36460
For #38768

Change-Id: Ibaf2d0fbf7387dfab1aad8981140ecb11901fc4b
Reviewed-on: https://go-review.googlesource.com/c/go/+/308809
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/script_test.go
src/cmd/go/stop_other_test.go [new file with mode: 0644]
src/cmd/go/stop_unix_test.go [new file with mode: 0644]