]> Cypherpunks repositories - gostls13.git/commit
cmd/fix: allow cgo commands in tests to fail if 'go build' is not supported
authorBryan C. Mills <bcmills@google.com>
Thu, 17 Nov 2022 01:24:03 +0000 (20:24 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 17 Nov 2022 02:37:07 +0000 (02:37 +0000)
commit3f5b02d09f0d345c2d6bef83eddbd518e9327276
treef938dbd97cf925cc62481def3821a18428e9c6ac
parentb138e71e5b90c75e6e5239fb8f4536c6dcc31c36
cmd/fix: allow cgo commands in tests to fail if 'go build' is not supported

testenv.HasCgo reports whether the test binary may have been built
with cgo enabled, but having been built with cgo does not necessarily
imply that the test can invoke the cgo tool itself.

This should fix a test failure on the android builders introduced in
CL 450714.

Change-Id: I2eed4098736e1cb285ca20bc248b0ab3515f0dea
Reviewed-on: https://go-review.googlesource.com/c/go/+/451221
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
src/cmd/fix/main_test.go