]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: disable TestStackBarrierProfiling on ppc64
authorAustin Clements <austin@google.com>
Fri, 20 Nov 2015 19:12:04 +0000 (14:12 -0500)
committerAustin Clements <austin@google.com>
Fri, 20 Nov 2015 19:39:36 +0000 (19:39 +0000)
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 <austin@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/pprof/pprof_test.go

index ce10c219f60e3ea4d02f2cc96d44b0007ec4871d..757bde4f2864581e084dc2a2f83c92fc25d353fc 100644 (file)
@@ -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 {