]> Cypherpunks repositories - gostls13.git/commit
internal/buildcfg: fix test for GOAMD64=v3 ./all.bash
authorMatthew Dempsky <mdempsky@google.com>
Mon, 20 Sep 2021 21:59:54 +0000 (14:59 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 20 Sep 2021 23:04:13 +0000 (23:04 +0000)
commitd7e3e442febea1d4ba7b6b456f46b2fd9c3b69e6
treebe0d12c5e4d10ef7647a61a930ac1d32c6618a95
parentba1c52d7d77724de4407572bd02421c36df3d78a
internal/buildcfg: fix test for GOAMD64=v3 ./all.bash

If GOAMD64 is set to a bogus value, goamd64() will return the default
value, which may not necessarily be 1. Instead, just test that it sets
Error.

Change-Id: Ibbc26608c1ae24e645c7753ef5765b9c2fdc089e
Reviewed-on: https://go-review.googlesource.com/c/go/+/351129
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/buildcfg/cfg_test.go