Skip to content

Commit 376076f

Browse files
ianlancetaylorgopherbot
authored andcommitted
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 <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]>
1 parent 0bbd67e commit 376076f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runtime/crash_cgo_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ func TestCgoCCodeSIGPROF(t *testing.T) {
218218
}
219219

220220
func TestCgoPprofCallback(t *testing.T) {
221-
t.Parallel()
221+
if testing.Short() {
222+
t.Skip("skipping in short mode") // takes a full second
223+
}
222224
switch runtime.GOOS {
223225
case "windows", "plan9":
224226
t.Skipf("skipping cgo pprof callback test on %s", runtime.GOOS)

0 commit comments

Comments
 (0)