]> Cypherpunks repositories - gostls13.git/commit
all: move //go:debug decoratemappings=0 test to cmd/go
authorMichael Pratt <mpratt@google.com>
Tue, 11 Mar 2025 19:09:46 +0000 (15:09 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 11 Mar 2025 22:07:33 +0000 (15:07 -0700)
commit3fb8b4f3db21396a69bfaa0bdbf1252214c93ecd
treed47d678113f86beada35f0f53a90a3d7735311c0
parent8867af920748f8aa4e9beb5bb8b88c34c85766f2
all: move //go:debug decoratemappings=0 test to cmd/go

test/decoratemappingszero.go is intended to test that
//go:debug decoratemappings=0 disables annonations.

Unfortunately, //go:debug processing is handled by cmd/go, but
cmd/internal/testdir (which runs tests from test/) generally invokes the
compiler directly, thus it does not set default GODEBUGs.

Move this test to the cmd/go script tests, alongside the similar test
for language version.

Fixes #72772.

Cq-Include-Trybots: luci.golang.try:gotip-linux-ppc64le_power10
Change-Id: I6a6a636c9d380ef984f760be5689fdc7f5cb2aeb
Reviewed-on: https://go-review.googlesource.com/c/go/+/656795
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/cmd/go/testdata/script/godebug_decoratemappings_124.txt [moved from src/cmd/go/testdata/script/godebug_decoratemappings.txt with 100% similarity]
src/cmd/go/testdata/script/godebug_decoratemappings_comment.txt [moved from test/decoratemappingszero.go with 54% similarity]