From: Rahul Chaudhry Date: Thu, 3 Dec 2015 00:42:17 +0000 (-0800) Subject: os: skip TestHardLink on Android. X-Git-Tag: go1.6beta1~226 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3afee4380b89fb6797a1bf15c22216eb13038e2f;p=gostls13.git os: skip TestHardLink on Android. 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 Change-Id: Ifdadaa31e3d5ee330553f45db6c001897dc955be Reviewed-on: https://go-review.googlesource.com/17339 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick --- 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.