Skip to content

Commit

Permalink
internal/trace/v2: disable cgo callback test if cgo is not available
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mknyszek authored and gopherbot committed Nov 10, 2023
1 parent 3b303fa commit abf8422
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/internal/trace/v2/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit abf8422

Please sign in to comment.