From: Michael Anthony Knyszek Date: Fri, 10 Nov 2023 16:05:07 +0000 (+0000) Subject: internal/trace/v2: disable cgo callback test if cgo is not available X-Git-Tag: go1.22rc1~350 X-Git-Url: http://www.git.cypherpunks.ru/?p=gostls13.git;a=commitdiff_plain;h=abf84221fc35a03848cda60373adf484eafb3e1b 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 TryBot-Result: Gopher Robot Auto-Submit: Michael Knyszek Run-TryBot: Michael Knyszek --- diff --git a/src/internal/trace/v2/trace_test.go b/src/internal/trace/v2/trace_test.go index af0d639dc8..7823b01e93 100644 --- a/src/internal/trace/v2/trace_test.go +++ b/src/internal/trace/v2/trace_test.go @@ -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)