From 97252f620ff8718ca9f7fef0ddebef16c6993612 Mon Sep 17 00:00:00 2001 From: Cherry Zhang Date: Fri, 19 Apr 2019 11:53:33 -0400 Subject: [PATCH] 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 Reviewed-by: Bryan C. Mills TryBot-Result: Gobot Gobot --- src/runtime/runtime-gdb_test.go | 1 + 1 file changed, 1 insertion(+) 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 -- 2.48.1