From 71371d850f4255c4ec2d6900e026dfb3dd660c98 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 7 Apr 2019 20:00:39 +0200 Subject: [PATCH] os: skip Open("/") on Android It's not supported in an app context: $ go test -short os --- FAIL: TestChdirAndGetwd (0.00s) os_test.go:1213: Open /: open /: permission denied Change-Id: I56b951f925a50fd67715ee2f1de64951ee867e91 Reviewed-on: https://go-review.googlesource.com/c/go/+/170946 Run-TryBot: Elias Naur Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/os/os_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/os_test.go b/src/os/os_test.go index 1de46c29f5..b7e26f47b7 100644 --- a/src/os/os_test.go +++ b/src/os/os_test.go @@ -1185,7 +1185,7 @@ func TestChdirAndGetwd(t *testing.T) { // /usr/bin does not usually exist on Plan 9 or Android. switch runtime.GOOS { case "android": - dirs = []string{"/", "/system/bin"} + dirs = []string{"/system/bin"} case "plan9": dirs = []string{"/", "/usr"} case "darwin": -- 2.48.1