]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: skip GOROOT tests on darwin/arm
authorDavid Crawshaw <crawshaw@golang.org>
Tue, 3 Mar 2015 19:55:04 +0000 (14:55 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Tue, 3 Mar 2015 20:03:01 +0000 (20:03 +0000)
Change-Id: If2d303caae933eec61634152e5d83faaba591315
Reviewed-on: https://go-review.googlesource.com/6660
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/go/build/build_test.go

index 3985638189db2353286005d845d7ecdf6160b977..cc51174ef431db35d875a88b629120717c608ab2 100644 (file)
@@ -109,6 +109,10 @@ func TestMultiplePackageImport(t *testing.T) {
 }
 
 func TestLocalDirectory(t *testing.T) {
+       if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" {
+               t.Skipf("skipping on %s/%s, no valid GOROOT", runtime.GOOS, runtime.GOARCH)
+       }
+
        cwd, err := os.Getwd()
        if err != nil {
                t.Fatal(err)
@@ -223,6 +227,10 @@ func TestMatchFile(t *testing.T) {
 }
 
 func TestImportCmd(t *testing.T) {
+       if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" {
+               t.Skipf("skipping on %s/%s, no valid GOROOT", runtime.GOOS, runtime.GOARCH)
+       }
+
        p, err := Import("cmd/internal/objfile", "", 0)
        if err != nil {
                t.Fatal(err)