]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/pprof: skip TestDeltaProfile on openbsd/arm
authorBryan C. Mills <bcmills@google.com>
Thu, 16 Dec 2021 15:22:37 +0000 (10:22 -0500)
committerBryan Mills <bcmills@google.com>
Thu, 16 Dec 2021 22:15:22 +0000 (22:15 +0000)
It is observed to be flaky on the only openbsd/arm builder.
Skipping on that platform until someone can investigate.

For #50218

Change-Id: Id3a6dc12b93b3cec67870d8d81bd608c4589c952
Reviewed-on: https://go-review.googlesource.com/c/go/+/372794
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/net/http/pprof/pprof_test.go

index 84757e401aaa0c7c1e0eff786e9d270b0574f43e..1a4d653a62d26bb812c92ef704c6480f403ba416 100644 (file)
@@ -8,6 +8,7 @@ import (
        "bytes"
        "fmt"
        "internal/profile"
+       "internal/testenv"
        "io"
        "net/http"
        "net/http/httptest"
@@ -152,6 +153,10 @@ func mutexHog(duration time.Duration, hogger func(mu1, mu2 *sync.Mutex, start ti
 }
 
 func TestDeltaProfile(t *testing.T) {
+       if runtime.GOOS == "openbsd" && runtime.GOARCH == "arm" {
+               testenv.SkipFlaky(t, 50218)
+       }
+
        rate := runtime.SetMutexProfileFraction(1)
        defer func() {
                runtime.SetMutexProfileFraction(rate)