1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:04:45 -07:00

syscall: don't run fcntl child process test on iOS

Fixes darwin-arm{,64} builds.
Child processes aren't allowed on iOS.

Change-Id: I9258ed4df757ec394ef6327dbda96f5b9705bcdd
Reviewed-on: https://go-review.googlesource.com/10142
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Brad Fitzpatrick 2015-05-15 08:45:16 -07:00
parent 97494a45e2
commit d4ed30612c

View File

@ -67,6 +67,9 @@ func _() {
// Thus this test also verifies that the Flock_t structure can be // Thus this test also verifies that the Flock_t structure can be
// roundtripped with F_SETLK and F_GETLK. // roundtripped with F_SETLK and F_GETLK.
func TestFcntlFlock(t *testing.T) { func TestFcntlFlock(t *testing.T) {
if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
t.Skip("skipping; no child processes allowed on iOS")
}
flock := syscall.Flock_t{ flock := syscall.Flock_t{
Type: syscall.F_WRLCK, Type: syscall.F_WRLCK,
Start: 31415, Len: 271828, Whence: 1, Start: 31415, Len: 271828, Whence: 1,