]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: skip coro cgo test on platforms without cgo
authorAustin Clements <austin@google.com>
Fri, 17 May 2024 21:07:33 +0000 (17:07 -0400)
committerAustin Clements <austin@google.com>
Fri, 17 May 2024 21:36:37 +0000 (21:36 +0000)
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>

src/runtime/coro_test.go

index eeb7f256f148a32fb94e039bb058b11c870a59f3..10b5e1ea08d8d9e00abad4175d9d4129689f9637 100644 (file)
@@ -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")
        }