]> Cypherpunks repositories - gostls13.git/commitdiff
path/filepath: skip test on darwin/arm64
authorDavid Crawshaw <crawshaw@golang.org>
Sat, 11 Apr 2015 23:16:24 +0000 (19:16 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 13 Apr 2015 11:52:46 +0000 (11:52 +0000)
Just like darwin/arm.

Change-Id: I4b0ab4a104f2c8a821ca8b5fa8d266e51883709f
Reviewed-on: https://go-review.googlesource.com/8816
Reviewed-by: Minux Ma <minux@golang.org>
src/path/filepath/path_test.go

index aac7911d432211a90c18eb1c9ee41dc2fba7e059..4ecaada983891979d56227b6438e4c75a3677843 100644 (file)
@@ -420,9 +420,12 @@ func chtmpdir(t *testing.T) (restore func()) {
 }
 
 func TestWalk(t *testing.T) {
-       if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" {
-               restore := chtmpdir(t)
-               defer restore()
+       if runtime.GOOS == "darwin" {
+               switch runtime.GOARCH {
+               case "arm", "arm64":
+                       restore := chtmpdir(t)
+                       defer restore()
+               }
        }
        makeTree(t)
        errors := make([]error, 0, 10)
@@ -1033,8 +1036,11 @@ func TestDriveLetterInEvalSymlinks(t *testing.T) {
 }
 
 func TestBug3486(t *testing.T) { // http://golang.org/issue/3486
-       if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" {
-               t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
+       if runtime.GOOS == "darwin" {
+               switch runtime.GOARCH {
+               case "arm", "arm64":
+                       t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
+               }
        }
        root, err := filepath.EvalSymlinks(runtime.GOROOT() + "/test")
        if err != nil {