]> Cypherpunks repositories - gostls13.git/commitdiff
os: enable TestMkdirAllWithSymlink on darwin/arm64
authorTobias Klauser <tklauser@distanz.ch>
Tue, 21 Dec 2021 12:20:20 +0000 (13:20 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Sun, 2 Jan 2022 14:27:32 +0000 (14:27 +0000)
Go 1.16 renamed the iOS port from darwin/arm64 to ios/arm64 and
darwin/arm64 was repurposed for the macOS ARM64 port (see
https://golang.org/doc/go1.16#darwin).

TestMkdirAllWithSymlink ought to run on darwin/arm64, so enable it on
that platform.

For #45696

Change-Id: I2cad6b1dfddf215e6b6cd262bbd22251f48f3d8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/373359
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
src/os/path_test.go

index 4535abbc527b048c1ec2b21d43ba49d13f7f4d29..59f72834859e2f10d5a4e31c5351d72760d78a36 100644 (file)
@@ -96,13 +96,8 @@ func TestMkdirAllWithSymlink(t *testing.T) {
 
 func TestMkdirAllAtSlash(t *testing.T) {
        switch runtime.GOOS {
-       case "android", "plan9", "windows":
+       case "android", "ios", "plan9", "windows":
                t.Skipf("skipping on %s", runtime.GOOS)
-       case "darwin", "ios":
-               switch runtime.GOARCH {
-               case "arm64":
-                       t.Skipf("skipping on darwin/arm64, mkdir returns EPERM")
-               }
        }
        RemoveAll("/_go_os_test")
        const dir = "/_go_os_test/dir"