diff options
| author | Ian Lance Taylor <iant@golang.org> | 2015-07-27 10:34:11 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2015-07-27 17:54:02 +0000 |
| commit | 3f98b6a573a98470ce02344c5b91bf4d3cd38e14 (patch) | |
| tree | a46eb35a1f259f9b9ed46728e350fbcfcaaacff4 /src | |
| parent | 4c9464525ed393793ca74126135f2ca22863d718 (diff) | |
| download | go-3f98b6a573a98470ce02344c5b91bf4d3cd38e14.tar.xz | |
go/internal/gcimporter: only run compile test if go tool is available
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/go/internal/gcimporter/gcimporter_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/go/internal/gcimporter/gcimporter_test.go b/src/go/internal/gcimporter/gcimporter_test.go index e5edadfc26..07993a801f 100644 --- a/src/go/internal/gcimporter/gcimporter_test.go +++ b/src/go/internal/gcimporter/gcimporter_test.go @@ -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() |
