Commit 8c5f66bc authored by David Crawshaw's avatar David Crawshaw

path/filepath: skip test on darwin/arm64

Just like darwin/arm.

Change-Id: I4b0ab4a104f2c8a821ca8b5fa8d266e51883709f
Reviewed-on: https://go-review.googlesource.com/8816Reviewed-by: default avatarMinux Ma <minux@golang.org>
parent d6d423b9
...@@ -420,10 +420,13 @@ func chtmpdir(t *testing.T) (restore func()) { ...@@ -420,10 +420,13 @@ func chtmpdir(t *testing.T) (restore func()) {
} }
func TestWalk(t *testing.T) { func TestWalk(t *testing.T) {
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" { if runtime.GOOS == "darwin" {
switch runtime.GOARCH {
case "arm", "arm64":
restore := chtmpdir(t) restore := chtmpdir(t)
defer restore() defer restore()
} }
}
makeTree(t) makeTree(t)
errors := make([]error, 0, 10) errors := make([]error, 0, 10)
clear := true clear := true
...@@ -1033,9 +1036,12 @@ func TestDriveLetterInEvalSymlinks(t *testing.T) { ...@@ -1033,9 +1036,12 @@ func TestDriveLetterInEvalSymlinks(t *testing.T) {
} }
func TestBug3486(t *testing.T) { // http://golang.org/issue/3486 func TestBug3486(t *testing.T) { // http://golang.org/issue/3486
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" { if runtime.GOOS == "darwin" {
switch runtime.GOARCH {
case "arm", "arm64":
t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH) t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
} }
}
root, err := filepath.EvalSymlinks(runtime.GOROOT() + "/test") root, err := filepath.EvalSymlinks(runtime.GOROOT() + "/test")
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment