mirror of
https://github.com/golang/go.git
synced 2026-01-29 15:12:08 +03:00
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:
committed by
Gopher Robot
parent
4122d3e9ea
commit
3a6a034cd6
@@ -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
|
||||
|
||||
1
src/runtime/testdata/testprogcgo/notingo.go
vendored
1
src/runtime/testdata/testprogcgo/notingo.go
vendored
@@ -3,7 +3,6 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !plan9 && !windows
|
||||
// +build !plan9,!windows
|
||||
|
||||
package main
|
||||
|
||||
|
||||
Reference in New Issue
Block a user