Skip to content

Commit 466cae6

Browse files
committed
runtime: use GOTRACEBACK=system for TestStackBarrierProfiling
This should help with debugging failures. For #15138 and #15477. Change-Id: I77db2b6375d8b4403d3edf5527899d076291e02c Reviewed-on: https://go-review.googlesource.com/23134 Run-TryBot: Austin Clements <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Rick Hudson <[email protected]>
1 parent 1810008 commit 466cae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/pprof/pprof_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ func TestStackBarrierProfiling(t *testing.T) {
388388
args = append(args, "-test.short")
389389
}
390390
cmd := exec.Command(os.Args[0], args...)
391-
cmd.Env = append([]string{"GODEBUG=gcstackbarrierall=1", "GOGC=1"}, os.Environ()...)
391+
cmd.Env = append([]string{"GODEBUG=gcstackbarrierall=1", "GOGC=1", "GOTRACEBACK=system"}, os.Environ()...)
392392
if out, err := cmd.CombinedOutput(); err != nil {
393393
t.Fatalf("subprocess failed with %v:\n%s", err, out)
394394
}

0 commit comments

Comments
 (0)