aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2021-12-09 13:52:18 -0500
committerAustin Clements <austin@google.com>2021-12-12 14:36:21 +0000
commit8692bacb6a43d1f65e09d0e581ca8b464fd77664 (patch)
tree4c58287bd092f6923f39adb2a22418b19399de66 /src/runtime
parentcc795a01dcec7c97044b31571af88ac98310f2b3 (diff)
downloadgo-8692bacb6a43d1f65e09d0e581ca8b464fd77664.tar.gz
go-8692bacb6a43d1f65e09d0e581ca8b464fd77664.zip
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>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/runtime-gdb_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go
index 4a0f489c2f..63d3160ee4 100644
--- a/src/runtime/runtime-gdb_test.go
+++ b/src/runtime/runtime-gdb_test.go
@@ -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)