From ff9da9bcd579a08cf9ca62620c5956676ac28586 Mon Sep 17 00:00:00 2001 From: "khr@golang.org" Date: Tue, 20 May 2025 08:42:24 -0700 Subject: [PATCH] cmd/dist: pass GO_GCFLAGS to cpuN runtime tests We want gcflags, which control builder type (e.g. noopt) to be used for these tests also. Should fix noopt and maybe other builders. Change-Id: Iad34beab51714f0c38989ec0fc8778cf79087f72 Reviewed-on: https://go-review.googlesource.com/c/go/+/674455 Reviewed-by: Keith Randall Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov --- src/cmd/dist/test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index d335e4cfbc..ae1f5db534 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -952,6 +952,7 @@ func (t *tester) registerTests() { variant: "cpu" + strconv.Itoa(i), timeout: 300 * time.Second, cpu: strconv.Itoa(i), + gcflags: gogcflags, short: true, testFlags: []string{"-quick"}, // We set GOMAXPROCS=2 in addition to -cpu=1,2,4 in order to test runtime bootstrap code, -- 2.51.0