]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10] cmd/go: skip TestVetWithOnlyCgoFiles when cgo is disabled
authorDavid du Colombier <0intro@gmail.com>
Wed, 7 Mar 2018 22:03:24 +0000 (23:03 +0100)
committerAndrew Bonventre <andybons@golang.org>
Thu, 29 Mar 2018 15:24:13 +0000 (15:24 +0000)
commit8e1f12f001be4eefebb2930dd9f647a1a0a837ed
tree7241e8a845b20a390367551e18cf130546f3091a
parentac7c0ee26dda18076d5f6c151d8f920b43340ae3
[release-branch.go1.10] cmd/go: skip TestVetWithOnlyCgoFiles when cgo is disabled

CL 99175 added TestVetWithOnlyCgoFiles. However, this
test is failing on platforms where cgo is disabled,
because no file can be built.

This change fixes TestVetWithOnlyCgoFiles by skipping
this test when cgo is disabled.

Fixes #24304.

Change-Id: Ibb38fcd3e0ed1a791782145d3f2866f12117c6fe
Reviewed-on: https://go-review.googlesource.com/99275
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
(cherry picked from commit b1335037fad4c81ce296f652372aa631a29dcb48)
Reviewed-on: https://go-review.googlesource.com/103223
Reviewed-by: David du Colombier <0intro@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go