]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: fix test if built with CGO_ENABLED=0
authorIan Lance Taylor <iant@golang.org>
Fri, 11 Oct 2013 22:55:50 +0000 (15:55 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 11 Oct 2013 22:55:50 +0000 (15:55 -0700)
Fixes #6567.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/14502060

src/pkg/go/build/deps_test.go

index 4bb03d540060bf05258adb82da3d71a6f8e64c30..dd162c7db7ff11057ff9a7daa94a16ca4a4803eb 100644 (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.