cmd/go: fix windows test failure for test_buildinfo_godebug_issue68053

Fix required adding $GOEXE because windows will produce a .exe file.

Fixes: #68673

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Change-Id: I25206de362ee4be6a9c54bd1baa405f325d79313
Reviewed-on: https://go-review.googlesource.com/c/go/+/602095
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Sam Thanawalla 2024-07-31 14:55:51 +00:00
parent 650abbc0b0
commit 34ddde165d
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ go list -test -f '{{.ImportPath}} {{.DefaultGODEBUG}}'
stdout 'example.com/foo\.test.*panicnil=1.*'
go test -c
go version -m ./foo.test
go version -m ./foo.test$GOEXE
stdout 'build\tDefaultGODEBUG=.*panicnil=1.*'
-- go.mod --