@@ -806,6 +806,7 @@ class TestProcess : XCTestCase {
806806 }
807807 }
808808
809+ #if !os(Windows)
809810 func test_processGroup( ) throws {
810811 // The process group of the child process should be different to the parent's.
811812 let process = Process ( )
@@ -834,6 +835,7 @@ class TestProcess : XCTestCase {
834835 let parentPgrp = Int ( getpgrp ( ) )
835836 XCTAssertNotEqual ( parentPgrp, childPgrp, " Child process group \( parentPgrp) should not equal parent process group \( childPgrp) " )
836837 }
838+ #endif
837839
838840 static var allTests : [ ( String , ( TestProcess ) -> ( ) throws -> Void ) ] {
839841 var tests = [
@@ -864,7 +866,6 @@ class TestProcess : XCTestCase {
864866 ( " test_currentDirectory " , test_currentDirectory) ,
865867 ( " test_pipeCloseBeforeLaunch " , test_pipeCloseBeforeLaunch) ,
866868 ( " test_multiProcesses " , test_multiProcesses) ,
867- ( " test_processGroup " , test_processGroup) ,
868869 ]
869870
870871#if !os(Windows)
@@ -873,6 +874,7 @@ class TestProcess : XCTestCase {
873874 ( " test_interrupt " , test_interrupt) ,
874875 ( " test_suspend_resume " , test_suspend_resume) ,
875876 ( " test_fileDescriptorsAreNotInherited " , test_fileDescriptorsAreNotInherited) ,
877+ ( " test_processGroup " , test_processGroup) ,
876878 ]
877879#endif
878880 return tests
0 commit comments