From: Bryan C. Mills Date: Thu, 16 Dec 2021 15:22:37 +0000 (-0500) Subject: net/http/pprof: skip TestDeltaProfile on openbsd/arm X-Git-Tag: go1.18beta2~220 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d93677ad7e40d66c2ec5c5e75c984533db00b5ee;p=gostls13.git net/http/pprof: skip TestDeltaProfile on openbsd/arm 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 Run-TryBot: Bryan Mills Reviewed-by: Hyang-Ah Hana Kim TryBot-Result: Gopher Robot --- diff --git a/src/net/http/pprof/pprof_test.go b/src/net/http/pprof/pprof_test.go index 84757e401a..1a4d653a62 100644 --- a/src/net/http/pprof/pprof_test.go +++ b/src/net/http/pprof/pprof_test.go @@ -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)