]> Cypherpunks.ru repositories - gostls13.git/commitdiff
internal/trace/v2: disable cgo callback test if cgo is not available
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 10 Nov 2023 16:05:07 +0000 (16:05 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 10 Nov 2023 16:18:06 +0000 (16:18 +0000)
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>

src/internal/trace/v2/trace_test.go

index af0d639dc891bea723a0d234a18d5274ac7b4c9e..7823b01e9306fc02c61ab2b5feb1cc2d782d1205 100644 (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)