]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: skip TestCgoPprofCallback in short mode, don't run in parallel
authorIan Lance Taylor <iant@golang.org>
Thu, 5 Jan 2023 02:03:46 +0000 (18:03 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 9 Jan 2023 20:30:17 +0000 (20:30 +0000)
Fixes #54778

Change-Id: If9aef0c06b993ef2aedbeea9452297ee9f11fa06
Reviewed-on: https://go-review.googlesource.com/c/go/+/460461
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>

src/runtime/crash_cgo_test.go

index ba0e9f4ceda7c4b8a00860cf06c40ad7cace53cf..51d7bb50915d8e257496e33e1838c5830927ff33 100644 (file)
@@ -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)