From: Austin Clements Date: Fri, 20 Nov 2015 19:12:04 +0000 (-0500) Subject: runtime/pprof: disable TestStackBarrierProfiling on ppc64 X-Git-Tag: go1.6beta1~351 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=624d798a41675a543c6b969715c4750f376b71da;p=gostls13.git runtime/pprof: disable TestStackBarrierProfiling on ppc64 This test depends on GODEBUG=gcstackbarrierall, which doesn't work on ppc64. Updates #13334. Change-Id: Ie554117b783c4e999387f97dd660484488499d85 Reviewed-on: https://go-review.googlesource.com/17120 Run-TryBot: Austin Clements Reviewed-by: Russ Cox --- diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go index ce10c219f6..757bde4f28 100644 --- a/src/runtime/pprof/pprof_test.go +++ b/src/runtime/pprof/pprof_test.go @@ -333,6 +333,9 @@ func TestStackBarrierProfiling(t *testing.T) { // Re-execute this test with constant GC and stack // barriers at every frame. testenv.MustHaveExec(t) + if runtime.GOARCH == "ppc64" || runtime.GOARCH == "ppc64le" { + t.Skip("gcstackbarrierall doesn't work on ppc64") + } cmd := exec.Command(os.Args[0], "-test.run=TestStackBarrierProfiling") cmd.Env = append([]string{"GODEBUG=gcstackbarrierall=1", "GOGC=1"}, os.Environ()...) if out, err := cmd.CombinedOutput(); err != nil {