aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os/os_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os/os_test.go b/src/os/os_test.go
index 2ddaeb4f9c..5689e775f7 100644
--- a/src/os/os_test.go
+++ b/src/os/os_test.go
@@ -583,6 +583,12 @@ func TestHardLink(t *testing.T) {
if runtime.GOOS == "plan9" {
t.Skip("skipping on plan9, hardlinks not supported")
}
+ // From Android release M (Marshmallow), hard linking files is blocked
+ // and an attempt to call link() on a file will return EACCES.
+ // - https://code.google.com/p/android-developer-preview/issues/detail?id=3150
+ if runtime.GOOS == "android" {
+ t.Skip("skipping on android, hardlinks not supported")
+ }
defer chtmpdir(t)()
from, to := "hardlinktestfrom", "hardlinktestto"
Remove(from) // Just in case.