aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/crash_test.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2025-05-19 17:28:45 -0400
committerGopher Robot <gobot@golang.org>2025-05-20 11:31:20 -0700
commit2aac5a5cbacdaaefb518be7ea8ddc2a455ae35f2 (patch)
tree4a222cc574d0748e8430227212ebb7be1341bcfd /src/runtime/crash_test.go
parentca3b474702dcce86bf3e8597216cc73f43a17b16 (diff)
downloadgo-2aac5a5cbacdaaefb518be7ea8ddc2a455ae35f2.tar.xz
runtime: skip testprogcgo tests in race mode on freebsd
These were just enabled by https://go.dev/cl/643897, but freebsd unfortunately doesn't seem to support cgo + race mode by default. For #73788. Cq-Include-Trybots: luci.golang.try:gotip-freebsd-amd64-race Change-Id: I6a6a636c06176ca746548d0588283b1429d7c6d5 Reviewed-on: https://go-review.googlesource.com/c/go/+/674160 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Auto-Submit: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/crash_test.go')
-rw-r--r--src/runtime/crash_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go
index e691746598..63c4426806 100644
--- a/src/runtime/crash_test.go
+++ b/src/runtime/crash_test.go
@@ -229,6 +229,9 @@ func testCrashHandler(t *testing.T, cgo bool) {
}
var output string
if cgo {
+ if runtime.GOOS == "freebsd" && race.Enabled {
+ t.Skipf("race + cgo freebsd not supported. See https://go.dev/issue/73788.")
+ }
output = runTestProg(t, "testprogcgo", "Crash")
} else {
output = runTestProg(t, "testprog", "Crash")