1
0
mirror of https://github.com/golang/go synced 2024-09-28 20:14:28 -06:00

internal/trace/v2: disable cgo callback test if cgo is not available

For #63960.

Change-Id: I3d8d1567c4ee213e2ffd2bd91d0ffae9c4c42b92
Reviewed-on: https://go-review.googlesource.com/c/go/+/541535
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
Michael Anthony Knyszek 2023-11-10 16:05:07 +00:00 committed by Gopher Robot
parent 3b303fa981
commit abf84221fc

View File

@ -85,6 +85,8 @@ func TestTraceAnnotationsStress(t *testing.T) {
}
func TestTraceCgoCallback(t *testing.T) {
testenv.MustHaveCGO(t)
switch runtime.GOOS {
case "plan9", "windows":
t.Skipf("cgo callback test requires pthreads and is not supported on %s", runtime.GOOS)