diff --git a/unix/syscall_unix_test.go b/unix/syscall_unix_test.go index 0e6f1c7b..0d1c87ce 100644 --- a/unix/syscall_unix_test.go +++ b/unix/syscall_unix_test.go @@ -169,6 +169,11 @@ func TestPassFD(t *testing.T) { t.Skip("cannot exec subprocess on iOS, skipping test") } + if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { + passFDChild() + return + } + if runtime.GOOS == "aix" { // Unix network isn't properly working on AIX // 7.2 with Technical Level < 2 @@ -190,11 +195,6 @@ func TestPassFD(t *testing.T) { } } - if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { - passFDChild() - return - } - tempDir, err := ioutil.TempDir("", "TestPassFD") if err != nil { t.Fatal(err)