diff options
author | Jakob Unterwurzacher | 2018-03-05 23:40:08 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-03-05 23:40:08 +0100 |
commit | 4732e33a9a39935ecc07dfb7e857cc05b6fc6045 (patch) | |
tree | b8424257a8f23bb994a10dcce45b744a3bebe7b7 /internal/syscallcompat/emulate_test.go | |
parent | 18d4159d18b370f82dafd1c7627a6eb1f386cdfb (diff) |
macos: tests: fix deleting of scratch dir
macos rm does not understand --one-file-system,
and it cannot handle unreadable directories.
Diffstat (limited to 'internal/syscallcompat/emulate_test.go')
-rw-r--r-- | internal/syscallcompat/emulate_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/syscallcompat/emulate_test.go b/internal/syscallcompat/emulate_test.go index ddb012e..2cf2698 100644 --- a/internal/syscallcompat/emulate_test.go +++ b/internal/syscallcompat/emulate_test.go @@ -245,7 +245,7 @@ func TestEmulateSymlinkat(t *testing.T) { } func TestEmulateMkdirat(t *testing.T) { - err := emulateMkdirat(tmpDirFd, "mkdirat", 0100) + err := emulateMkdirat(tmpDirFd, "mkdirat", 0700) if err != nil { t.Fatal(err) } @@ -257,7 +257,7 @@ func TestEmulateMkdirat(t *testing.T) { t.Fatalf("mkdirat did not create a directory") } // Test with absolute path - err = emulateMkdirat(-1, tmpDir+"/mkdirat2", 0100) + err = emulateMkdirat(-1, tmpDir+"/mkdirat2", 0700) if err != nil { t.Fatal(err) } |