From d4ed30612c9eead7b1d59179cae5d468fb900f35 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 15 May 2015 08:45:16 -0700 Subject: [PATCH] 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 Run-TryBot: Brad Fitzpatrick --- src/syscall/syscall_unix_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/syscall/syscall_unix_test.go b/src/syscall/syscall_unix_test.go index 90fd276f82..af92013739 100644 --- a/src/syscall/syscall_unix_test.go +++ b/src/syscall/syscall_unix_test.go @@ -67,6 +67,9 @@ func _() { // Thus this test also verifies that the Flock_t structure can be // roundtripped with F_SETLK and F_GETLK. 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{ Type: syscall.F_WRLCK, Start: 31415, Len: 271828, Whence: 1, -- 2.48.1