Skip to content

Commit abf8422

Browse files
mknyszekgopherbot
authored andcommitted
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 <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Michael Knyszek <[email protected]> Run-TryBot: Michael Knyszek <[email protected]>
1 parent 3b303fa commit abf8422

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/internal/trace/v2/trace_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ func TestTraceAnnotationsStress(t *testing.T) {
8585
}
8686

8787
func TestTraceCgoCallback(t *testing.T) {
88+
testenv.MustHaveCGO(t)
89+
8890
switch runtime.GOOS {
8991
case "plan9", "windows":
9092
t.Skipf("cgo callback test requires pthreads and is not supported on %s", runtime.GOOS)

0 commit comments

Comments
 (0)