From: Ian Lance Taylor Date: Thu, 5 Jan 2023 02:03:46 +0000 (-0800) Subject: runtime: skip TestCgoPprofCallback in short mode, don't run in parallel X-Git-Tag: go1.20rc3~1^2~8 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=376076f3c6;p=gostls13.git runtime: skip TestCgoPprofCallback in short mode, don't run in parallel Fixes #54778 Change-Id: If9aef0c06b993ef2aedbeea9452297ee9f11fa06 Reviewed-on: https://go-review.googlesource.com/c/go/+/460461 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Reviewed-by: Michael Pratt Run-TryBot: Ian Lance Taylor --- diff --git a/src/runtime/crash_cgo_test.go b/src/runtime/crash_cgo_test.go index ba0e9f4ced..51d7bb5091 100644 --- a/src/runtime/crash_cgo_test.go +++ b/src/runtime/crash_cgo_test.go @@ -218,7 +218,9 @@ func TestCgoCCodeSIGPROF(t *testing.T) { } func TestCgoPprofCallback(t *testing.T) { - t.Parallel() + if testing.Short() { + t.Skip("skipping in short mode") // takes a full second + } switch runtime.GOOS { case "windows", "plan9": t.Skipf("skipping cgo pprof callback test on %s", runtime.GOOS)