diff options
| author | Ian Lance Taylor <iant@golang.org> | 2013-10-11 15:55:50 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2013-10-11 15:55:50 -0700 |
| commit | 96648e019567d9e50c147638f104f0bf4a381350 (patch) | |
| tree | e627ad11c5888ed44a76a99685a796f1abd130f5 /src | |
| parent | cd61565ffc003506c9544eb670eed195825bf4da (diff) | |
| download | go-96648e019567d9e50c147638f104f0bf4a381350.tar.xz | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/pkg/go/build/deps_test.go | 3 |
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. |
