]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: use GOTRACEBACK=system for TestStackBarrierProfiling
authorAustin Clements <austin@google.com>
Mon, 16 May 2016 19:27:48 +0000 (15:27 -0400)
committerAustin Clements <austin@google.com>
Mon, 16 May 2016 20:16:50 +0000 (20:16 +0000)
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 <austin@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/pprof/pprof_test.go

index 8b2f3d5291ee12a9d611432d9dfa349978415c75..3852d93e7264c6d98d493772a82416857b3fc0c4 100644 (file)
@@ -388,7 +388,7 @@ func TestStackBarrierProfiling(t *testing.T) {
                        args = append(args, "-test.short")
                }
                cmd := exec.Command(os.Args[0], args...)
-               cmd.Env = append([]string{"GODEBUG=gcstackbarrierall=1", "GOGC=1"}, os.Environ()...)
+               cmd.Env = append([]string{"GODEBUG=gcstackbarrierall=1", "GOGC=1", "GOTRACEBACK=system"}, os.Environ()...)
                if out, err := cmd.CombinedOutput(); err != nil {
                        t.Fatalf("subprocess failed with %v:\n%s", err, out)
                }