aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2019-04-19 11:53:33 -0400
committerCherry Zhang <cherryyz@google.com>2019-04-19 17:12:13 +0000
commit97252f620ff8718ca9f7fef0ddebef16c6993612 (patch)
treefc67917ea0fdaa1df5be738d0ddcb1447bffda80 /src/runtime
parent4a119141303407d9223296e9092611560665d3e1 (diff)
downloadgo-97252f620ff8718ca9f7fef0ddebef16c6993612.tar.xz
runtime: suppress thread event prints in gdb test
Pass "set print thread-events off" to gdb to suppress thread event prints, like "[New Thread 0xe7b83b40 (LWP 18609)]". We don't check them, and the extra output may confuse our other checks, in particular, checkCleanBacktrace. Hopefully fixes #31569. Change-Id: I6549e1280da7afa1d2e38da2b2fa7cc18c2f0373 Reviewed-on: https://go-review.googlesource.com/c/go/+/172980 Run-TryBot: Cherry Zhang <cherryyz@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/runtime-gdb_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go
index 8117a5c979..66f275969b 100644
--- a/src/runtime/runtime-gdb_test.go
+++ b/src/runtime/runtime-gdb_test.go
@@ -180,6 +180,7 @@ func testGdbPython(t *testing.T, cgo bool) {
args := []string{"-nx", "-q", "--batch",
"-iex", "add-auto-load-safe-path " + filepath.Join(runtime.GOROOT(), "src", "runtime"),
"-ex", "set startup-with-shell off",
+ "-ex", "set print thread-events off",
}
if cgo {
// When we build the cgo version of the program, the system's