From abf84221fc35a03848cda60373adf484eafb3e1b Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Fri, 10 Nov 2023 16:05:07 +0000 Subject: [PATCH 1/1] 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 --- src/internal/trace/v2/trace_test.go | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.44.0