aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder/decoder.go
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2022-02-28 16:39:28 -0500
committerMichael Matloob <matloob@golang.org>2022-02-28 22:02:43 +0000
commitacc5f55bac6884f8b27c5b73c4a15d777a7169a0 (patch)
treeb80b3af45e705ccfbff5df914dc85365bedab71d /src/cmd/compile/internal/noder/decoder.go
parentf04d5c118c2ccd058a3fb81586f92c8b29b373ae (diff)
downloadgo-acc5f55bac6884f8b27c5b73c4a15d777a7169a0.tar.xz
cmd/go: make work and work_edit script tests version-independent
The work and work_edit script tests ran go work init, which put the current Go version into the go.work files. Before this change, the tests used cmp to compare the outputs with a file that contained a literal "go 1.18" line. Instead, use cmpenv so we can compare with "go $goversion". (Some of the test cases still compare against files that contain "go 1.18" lines, but these tests explicitly set the version to go 1.18 either in the original go.work files or using go work edit.) Change-Id: Iea2caa7697b5fe5939070558b1664f70130095ce Reviewed-on: https://go-review.googlesource.com/c/go/+/388514 Trust: Michael Matloob <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Carlos Amedee <carlos@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/noder/decoder.go')
0 files changed, 0 insertions, 0 deletions