aboutsummaryrefslogtreecommitdiff
path: root/src/internal/trace
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2023-11-10 16:05:07 +0000
committerGopher Robot <gobot@golang.org>2023-11-10 16:18:06 +0000
commitabf84221fc35a03848cda60373adf484eafb3e1b (patch)
tree550f0015434a7f06db732722aee7906a8ec9e017 /src/internal/trace
parent3b303fa9815f0869a9ba429af537fd75d1dda85d (diff)
downloadgo-abf84221fc35a03848cda60373adf484eafb3e1b.tar.xz
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 <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Michael Knyszek <mknyszek@google.com> Run-TryBot: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/internal/trace')
-rw-r--r--src/internal/trace/v2/trace_test.go2
1 files changed, 2 insertions, 0 deletions
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)