}
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)
}
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 {