From b4376b8513bd0d0ace2102048c18371651ea6ae0 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 17 May 2024 17:07:33 -0400 Subject: [PATCH] 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 LUCI-TryBot-Result: Go LUCI --- src/runtime/coro_test.go | 2 ++ 1 file changed, 2 insertions(+) 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") }