mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -424,7 +424,7 @@ func TestGdbBacktrace(t *testing.T) {
|
||||||
"-ex", "continue",
|
"-ex", "continue",
|
||||||
filepath.Join(dir, "a.exe"),
|
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)
|
t.Logf("gdb output:\n%s", got)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("gdb exited with error: %v", err)
|
t.Fatalf("gdb exited with error: %v", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue