]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: skip tests for AIX
authorClément Chigot <chigot.c@gmail.com>
Thu, 1 Apr 2021 08:06:05 +0000 (10:06 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Sun, 4 Apr 2021 12:04:33 +0000 (12:04 +0000)
Most of the time, the pprof tests are passing, except
for the builder. The reason is still unknown but I'd rather release
the builder to avoid missing other more important bugs.

Updates #45170

Change-Id: I667543ee1ae309b7319c5b3676a0901b4d0ecf2e
Reviewed-on: https://go-review.googlesource.com/c/go/+/306489
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Trust: Lynn Boger <laboger@linux.vnet.ibm.com>

src/runtime/pprof/pprof_test.go

index 1b86dbff5b231b04a0c8803e19829f3cebe79a22..e6b4d0044d8c0a84d62c631cc12533c4e9fd86bf 100644 (file)
@@ -276,7 +276,8 @@ func testCPUProfile(t *testing.T, matches matchFunc, need []string, avoid []stri
 
        broken := false
        switch runtime.GOOS {
-       case "ios", "dragonfly", "netbsd", "illumos", "solaris":
+       // See https://golang.org/issue/45170 for AIX.
+       case "ios", "dragonfly", "netbsd", "illumos", "solaris", "aix":
                broken = true
        case "openbsd":
                if runtime.GOARCH == "arm" || runtime.GOARCH == "arm64" {