@@ -806,6 +806,7 @@ class TestProcess : XCTestCase {
806
806
}
807
807
}
808
808
809
+ #if !os(Windows)
809
810
func test_processGroup( ) throws {
810
811
// The process group of the child process should be different to the parent's.
811
812
let process = Process ( )
@@ -834,6 +835,7 @@ class TestProcess : XCTestCase {
834
835
let parentPgrp = Int ( getpgrp ( ) )
835
836
XCTAssertNotEqual ( parentPgrp, childPgrp, " Child process group \( parentPgrp) should not equal parent process group \( childPgrp) " )
836
837
}
838
+ #endif
837
839
838
840
static var allTests : [ ( String , ( TestProcess ) -> ( ) throws -> Void ) ] {
839
841
var tests = [
@@ -864,7 +866,6 @@ class TestProcess : XCTestCase {
864
866
( " test_currentDirectory " , test_currentDirectory) ,
865
867
( " test_pipeCloseBeforeLaunch " , test_pipeCloseBeforeLaunch) ,
866
868
( " test_multiProcesses " , test_multiProcesses) ,
867
- ( " test_processGroup " , test_processGroup) ,
868
869
]
869
870
870
871
#if !os(Windows)
@@ -873,6 +874,7 @@ class TestProcess : XCTestCase {
873
874
( " test_interrupt " , test_interrupt) ,
874
875
( " test_suspend_resume " , test_suspend_resume) ,
875
876
( " test_fileDescriptorsAreNotInherited " , test_fileDescriptorsAreNotInherited) ,
877
+ ( " test_processGroup " , test_processGroup) ,
876
878
]
877
879
#endif
878
880
return tests
0 commit comments