1
0
mirror of https://github.com/golang/go synced 2024-11-15 06:30:32 -07:00

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>
This commit is contained in:
Austin Clements 2024-05-17 17:07:33 -04:00
parent 6ec291f495
commit b4376b8513

View File

@ -5,6 +5,7 @@
package runtime_test package runtime_test
import ( import (
"internal/testenv"
"runtime" "runtime"
"strings" "strings"
"testing" "testing"
@ -30,6 +31,7 @@ func TestCoroLockOSThread(t *testing.T) {
} }
func TestCoroCgoCallback(t *testing.T) { func TestCoroCgoCallback(t *testing.T) {
testenv.MustHaveCGO(t)
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
t.Skip("coro cgo callback tests not supported on Windows") t.Skip("coro cgo callback tests not supported on Windows")
} }