Skip to content

Commit d888f1d

Browse files
committed
runtime: add debugging to TestTimePprof
We've seen timeouts of TestTimePprof, but the tracebacks aren't useful because goroutines are running on other threads. Add GOTRACEBACK=crash to catch these in the future. For #41120. Change-Id: I97318172ef78d0cbab10df5e4ffcbfeadff579e3 Reviewed-on: https://go-review.googlesource.com/c/go/+/258802 Trust: Austin Clements <[email protected]> Run-TryBot: Austin Clements <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 79dbdf2 commit d888f1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runtime/crash_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,9 @@ func TestBadTraceback(t *testing.T) {
667667
}
668668

669669
func TestTimePprof(t *testing.T) {
670-
fn := runTestProg(t, "testprog", "TimeProf")
670+
// Pass GOTRACEBACK for issue #41120 to try to get more
671+
// information on timeout.
672+
fn := runTestProg(t, "testprog", "TimeProf", "GOTRACEBACK=crash")
671673
fn = strings.TrimSpace(fn)
672674
defer os.Remove(fn)
673675

0 commit comments

Comments
 (0)