From: Hyang-Ah Hana Kim Date: Tue, 20 Oct 2015 21:10:04 +0000 (-0400) Subject: os: disable symlink tests on android. X-Git-Tag: go1.6beta1~779 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=84808a2a90c28270589c05eca3b8d7657e49fe87;p=gostls13.git os: disable symlink tests on android. Creating symlinks (/data/local/tmp/*) doesn't seem to work on android-L (tested on nexus5). I cannot find any official documentation yet but just guess it's a measure for security attacks using symlinks. The tests failed with 'permission denied' errors. For golang/go#10807 Change-Id: I99a9c401c6ecca3c4adc7b21708adaf3dd601279 Reviewed-on: https://go-review.googlesource.com/16115 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/os/os_test.go b/src/os/os_test.go index 6b726745cf..be9fa91028 100644 --- a/src/os/os_test.go +++ b/src/os/os_test.go @@ -672,7 +672,7 @@ func TestSymlink(t *testing.T) { func TestLongSymlink(t *testing.T) { switch runtime.GOOS { - case "plan9", "nacl": + case "android", "plan9", "nacl": t.Skipf("skipping on %s", runtime.GOOS) case "windows": if !supportsSymlinks { diff --git a/src/os/path_test.go b/src/os/path_test.go index f9853810c6..b4531314d0 100644 --- a/src/os/path_test.go +++ b/src/os/path_test.go @@ -170,7 +170,7 @@ func TestRemoveAll(t *testing.T) { func TestMkdirAllWithSymlink(t *testing.T) { switch runtime.GOOS { - case "nacl", "plan9": + case "android", "nacl", "plan9": t.Skipf("skipping on %s", runtime.GOOS) case "windows": if !supportsSymlinks {