runtime: disable TestNotInGoMetricCallback on FreeBSD + race

cgo + race is not supported on FreeBSD.

Change-Id: I38abeccaaabfcc104d1d5a077fb99646dc4be792
Reviewed-on: https://go-review.googlesource.com/c/go/+/728120
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
Michael Anthony Knyszek
2025-12-08 16:05:53 +00:00
committed by Gopher Robot
parent 4122d3e9ea
commit 3a6a034cd6
2 changed files with 5 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import (
"internal/abi"
"internal/goexperiment"
"internal/profile"
"internal/race"
"internal/testenv"
"os"
"reflect"
@@ -1589,6 +1590,10 @@ func TestNotInGoMetricCallback(t *testing.T) {
switch runtime.GOOS {
case "windows", "plan9":
t.Skip("unsupported on Windows and Plan9")
case "freebsd":
if race.Enabled {
t.Skipf("race + cgo freebsd not supported. See https://go.dev/issue/73788.")
}
}
// This test is run in a subprocess to prevent other tests from polluting the metrics

View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !plan9 && !windows
// +build !plan9,!windows
package main