summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2023-01-04 18:03:46 -0800
committerGopher Robot <gobot@golang.org>2023-01-09 20:30:17 +0000
commit376076f3c6bed06f5256a316af8f1eed53a1135e (patch)
tree1584a21fc481e18190acaa617e436184c60b09ca
parent0bbd67e52f98ce45e39e9a43e3c87a8c32aabbd2 (diff)
downloadgo-git-376076f3c6bed06f5256a316af8f1eed53a1135e.tar.gz
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 <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>
-rw-r--r--src/runtime/crash_cgo_test.go4
1 files changed, 3 insertions, 1 deletions
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)