mirror of
https://github.com/golang/go
synced 2024-11-15 04:40:28 -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:
parent
6ec291f495
commit
b4376b8513
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user