]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: pass GO_GCFLAGS to cpuN runtime tests
authorkhr@golang.org <khr@golang.org>
Tue, 20 May 2025 15:42:24 +0000 (08:42 -0700)
committerKeith Randall <khr@golang.org>
Tue, 20 May 2025 16:45:30 +0000 (09:45 -0700)
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 <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/cmd/dist/test.go

index d335e4cfbce4689d08a513f39707b2c2310649a4..ae1f5db5348eee0fb94527e737b376c0a3c29521 100644 (file)
@@ -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,