1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:50:21 -07:00

go/build: fix test if built with CGO_ENABLED=0

Fixes #6567.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/14502060
This commit is contained in:
Ian Lance Taylor 2013-10-11 15:55:50 -07:00
parent cd61565ffc
commit 96648e0195

View File

@ -392,6 +392,9 @@ func TestDependencies(t *testing.T) {
if allowedErrors[osPkg{ctxt.GOOS, pkg}] {
continue
}
if !ctxt.CgoEnabled && pkg == "runtime/cgo" {
continue
}
// Some of the combinations we try might not
// be reasonable (like arm,plan9,cgo), so ignore
// errors for the auto-generated combinations.