aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2024-05-17 17:07:33 -0400
committerAustin Clements <austin@google.com>2024-05-17 21:36:37 +0000
commitb4376b8513bd0d0ace2102048c18371651ea6ae0 (patch)
treef285c3bdf233a8d1218e80f71ff0b246d5a9453c /src/runtime
parent6ec291f4952090dfcaa4406b85efb3a8e6a42feb (diff)
downloadgo-b4376b8513bd0d0ace2102048c18371651ea6ae0.tar.gz
go-b4376b8513bd0d0ace2102048c18371651ea6ae0.zip
runtime: skip coro cgo test on platforms without cgo
Change-Id: Ibbe82a3ae2a67fb8f2b831130123dc74bc4dc9dc Reviewed-on: https://go-review.googlesource.com/c/go/+/586535 Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/coro_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/coro_test.go b/src/runtime/coro_test.go
index eeb7f256f1..10b5e1ea08 100644
--- a/src/runtime/coro_test.go
+++ b/src/runtime/coro_test.go
@@ -5,6 +5,7 @@
package runtime_test
import (
+ "internal/testenv"
"runtime"
"strings"
"testing"
@@ -30,6 +31,7 @@ func TestCoroLockOSThread(t *testing.T) {
}
func TestCoroCgoCallback(t *testing.T) {
+ testenv.MustHaveCGO(t)
if runtime.GOOS == "windows" {
t.Skip("coro cgo callback tests not supported on Windows")
}