Skip to content

Commit

Permalink
cmd/go: don't run TestIssue7573 if cgo not supported
Browse files Browse the repository at this point in the history
Fixes golang#12629.

Change-Id: Iee96dc4f806a38f3cd8e065b8d0d5f682bb7e29b
Reviewed-on: https://go-review.googlesource.com/14597
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
ianlancetaylor committed Sep 15, 2015
1 parent 448f84a commit 64ad587
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmd/go/go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,9 @@ func TestIssue6480(t *testing.T) {

// cmd/cgo: undefined reference when linking a C-library using gccgo
func TestIssue7573(t *testing.T) {
if !canCgo {
t.Skip("skipping because cgo not enabled")
}
if _, err := exec.LookPath("gccgo"); err != nil {
t.Skip("skipping because no gccgo compiler found")
}
Expand Down

0 comments on commit 64ad587

Please sign in to comment.