aboutsummaryrefslogtreecommitdiff
path: root/src/io/fs/walk_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/fs/walk_test.go')
-rw-r--r--src/io/fs/walk_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/io/fs/walk_test.go b/src/io/fs/walk_test.go
index 395471e2e8..ebc4e50fb3 100644
--- a/src/io/fs/walk_test.go
+++ b/src/io/fs/walk_test.go
@@ -9,7 +9,6 @@ import (
"io/ioutil"
"os"
pathpkg "path"
- "runtime"
"testing"
"testing/fstest"
)
@@ -96,32 +95,7 @@ func mark(entry DirEntry, err error, errors *[]error, clear bool) error {
return nil
}
-func chtmpdir(t *testing.T) (restore func()) {
- oldwd, err := os.Getwd()
- if err != nil {
- t.Fatalf("chtmpdir: %v", err)
- }
- d, err := ioutil.TempDir("", "test")
- if err != nil {
- t.Fatalf("chtmpdir: %v", err)
- }
- if err := os.Chdir(d); err != nil {
- t.Fatalf("chtmpdir: %v", err)
- }
- return func() {
- if err := os.Chdir(oldwd); err != nil {
- t.Fatalf("chtmpdir: %v", err)
- }
- os.RemoveAll(d)
- }
-}
-
func TestWalkDir(t *testing.T) {
- if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
- restore := chtmpdir(t)
- defer restore()
- }
-
tmpDir, err := ioutil.TempDir("", "TestWalk")
if err != nil {
t.Fatal("creating temp dir:", err)