mirror of
https://github.com/golang/go
synced 2024-11-13 17:50:23 -07:00
os: skip Lchown test on Android if symlink doesn't work
After upgrading builder device (android/arm) to android 5.0.2, the test started failing. Running 'ln -s' from shell fails with permission error. Change-Id: I5b9e312806d58532b41ea3560ff079dabbc6424e Reviewed-on: https://go-review.googlesource.com/22962 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
256a9670cc
commit
561c948844
@ -145,6 +145,9 @@ func TestLchown(t *testing.T) {
|
||||
|
||||
linkname := f.Name() + "2"
|
||||
if err := Symlink(f.Name(), linkname); err != nil {
|
||||
if runtime.GOOS == "android" && IsPermission(err) {
|
||||
t.Skip("skipping test on Android; permission error creating symlink")
|
||||
}
|
||||
t.Fatalf("link %s -> %s: %v", f.Name(), linkname, err)
|
||||
}
|
||||
defer Remove(linkname)
|
||||
|
Loading…
Reference in New Issue
Block a user