]> Cypherpunks repositories - gostls13.git/commit
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)
committerDavid du Colombier <0intro@gmail.com>
Wed, 7 Mar 2018 22:03:43 +0000 (22:03 +0000)
commitb1335037fad4c81ce296f652372aa631a29dcb48
treed0b1bdcec9db6a6459a675eb65009ab980edbb49
parent7a2a96d6ad75762f427669beb0220810adb6a9e1
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>
src/cmd/go/go_test.go