aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2013-10-11 15:55:50 -0700
committerIan Lance Taylor <iant@golang.org>2013-10-11 15:55:50 -0700
commit96648e019567d9e50c147638f104f0bf4a381350 (patch)
treee627ad11c5888ed44a76a99685a796f1abd130f5
parentcd61565ffc003506c9544eb670eed195825bf4da (diff)
downloadgo-96648e019567d9e50c147638f104f0bf4a381350.tar.gz
go-96648e019567d9e50c147638f104f0bf4a381350.zip
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
-rw-r--r--src/pkg/go/build/deps_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/go/build/deps_test.go b/src/pkg/go/build/deps_test.go
index 4bb03d5400..dd162c7db7 100644
--- a/src/pkg/go/build/deps_test.go
+++ b/src/pkg/go/build/deps_test.go
@@ -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.