mirror of
https://github.com/golang/go
synced 2024-11-19 09:54:49 -07:00
runtime: run gdb with a timeout for TestGdbBacktrace
This sometimes times out and we don't have any useful output for debugging it. Hopefully this will help. For #37405. Change-Id: I79074e6fbb9bd16a864c651109a0acbfc8aa6cef Reviewed-on: https://go-review.googlesource.com/c/go/+/370703 Trust: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
cc795a01dc
commit
8692bacb6a
@ -424,7 +424,7 @@ func TestGdbBacktrace(t *testing.T) {
|
||||
"-ex", "continue",
|
||||
filepath.Join(dir, "a.exe"),
|
||||
}
|
||||
got, err := exec.Command("gdb", args...).CombinedOutput()
|
||||
got, err := testenv.RunWithTimeout(t, exec.Command("gdb", args...))
|
||||
t.Logf("gdb output:\n%s", got)
|
||||
if err != nil {
|
||||
t.Fatalf("gdb exited with error: %v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user