Skip to content

Commit 8692bac

Browse files
committed
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 <[email protected]> Run-TryBot: Austin Clements <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent cc795a0 commit 8692bac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/runtime-gdb_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ func TestGdbBacktrace(t *testing.T) {
424424
"-ex", "continue",
425425
filepath.Join(dir, "a.exe"),
426426
}
427-
got, err := exec.Command("gdb", args...).CombinedOutput()
427+
got, err := testenv.RunWithTimeout(t, exec.Command("gdb", args...))
428428
t.Logf("gdb output:\n%s", got)
429429
if err != nil {
430430
t.Fatalf("gdb exited with error: %v", err)

0 commit comments

Comments
 (0)