Skip to content

Commit

Permalink
go/build: fix test if built with CGO_ENABLED=0
Browse files Browse the repository at this point in the history
Fixes #6567.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/14502060
  • Loading branch information
ianlancetaylor committed Oct 11, 2013
1 parent cd61565 commit 96648e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pkg/go/build/deps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 96648e0

Please sign in to comment.