mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: if the test program hangs, try to get a stack trace
This is an attempt to get more information for #14809, which seems to occur rarely. Updates #14809. Change-Id: Idbeb136ceb57993644e03266622eb699d2685d02 Reviewed-on: https://go-review.googlesource.com/24110 Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
parent
48cc3c4b58
commit
26d6dc6bf8
3 changed files with 59 additions and 2 deletions
|
|
@ -19,6 +19,10 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
// sigquit is the signal to send to kill a hanging testdata program.
|
||||
// Send SIGQUIT to get a stack trace.
|
||||
var sigquit = syscall.SIGQUIT
|
||||
|
||||
func TestCrashDumpsAllThreads(t *testing.T) {
|
||||
switch runtime.GOOS {
|
||||
case "darwin", "dragonfly", "freebsd", "linux", "netbsd", "openbsd", "solaris":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue