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") }