]> Cypherpunks repositories - gostls13.git/commit
runtime: only run TestNotInGoMetricCallback when building with cgo
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 8 Dec 2025 16:17:15 +0000 (16:17 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 8 Dec 2025 16:36:30 +0000 (08:36 -0800)
commit44a39c9dacdb3378197b9515add22d292dd71af9
tree5efc9b17249e500189f4c9ef5fa4a4e8bc4e8b00
parent3a6a034cd63e55f5ee00f9002e62204fa50f96bf
runtime: only run TestNotInGoMetricCallback when building with cgo

It seems like some platforms don't build with cgo at all, like
linux/ppc64.

Change-Id: Ibe5306e79899822e77d42cb3018f9f0c9ca2604c
Reviewed-on: https://go-review.googlesource.com/c/go/+/728140
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/runtime/metrics_cgo_test.go [new file with mode: 0644]
src/runtime/metrics_test.go