]> Cypherpunks repositories - gostls13.git/commitdiff
go/internal/gcimporter: only run compile test if go tool is available
authorIan Lance Taylor <iant@golang.org>
Mon, 27 Jul 2015 17:34:11 +0000 (10:34 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 27 Jul 2015 17:54:02 +0000 (17:54 +0000)
Fixes build dashboard failures for android and nacl.

Change-Id: Id13896570061d3d8186f7b666ca1c37bcc789b0f
Reviewed-on: https://go-review.googlesource.com/12703
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/go/internal/gcimporter/gcimporter_test.go

index e5edadfc261b03af5a0177cc299616e493b1d5dd..07993a801f7e7c28c462c637b12f26e92fda0eb0 100644 (file)
@@ -6,6 +6,7 @@ package gcimporter
 
 import (
        "fmt"
+       "internal/testenv"
        "io/ioutil"
        "os"
        "os/exec"
@@ -33,6 +34,7 @@ func skipSpecialPlatforms(t *testing.T) {
 }
 
 func compile(t *testing.T, dirname, filename string) string {
+       testenv.MustHaveGoBuild(t)
        cmd := exec.Command("go", "tool", "compile", filename)
        cmd.Dir = dirname
        out, err := cmd.CombinedOutput()