Skip to content

Commit 3afee43

Browse files
Rahul Chaudhrybradfitz
Rahul Chaudhry
authored andcommitted
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 <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]>
1 parent dc94094 commit 3afee43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/os/os_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,12 @@ func TestHardLink(t *testing.T) {
583583
if runtime.GOOS == "plan9" {
584584
t.Skip("skipping on plan9, hardlinks not supported")
585585
}
586+
// From Android release M (Marshmallow), hard linking files is blocked
587+
// and an attempt to call link() on a file will return EACCES.
588+
// - https://code.google.com/p/android-developer-preview/issues/detail?id=3150
589+
if runtime.GOOS == "android" {
590+
t.Skip("skipping on android, hardlinks not supported")
591+
}
586592
defer chtmpdir(t)()
587593
from, to := "hardlinktestfrom", "hardlinktestto"
588594
Remove(from) // Just in case.

0 commit comments

Comments
 (0)