@@ -658,7 +658,7 @@ extension SubprocessUnixTests {
658
658
contentsOf: URL ( filePath: theMysteriousIsland. string)
659
659
)
660
660
let catResult = try await Subprocess . run (
661
- . name ( " /bin/bash " ) ,
661
+ . path ( " /bin/bash " ) ,
662
662
arguments: [ " -c " , " cat \( theMysteriousIsland. string) 1>&2 " ] ,
663
663
error: . data( limit: 2048 * 1024 )
664
664
)
@@ -756,7 +756,7 @@ extension SubprocessUnixTests {
756
756
// Sets the process group ID to 0, which creates a new session
757
757
platformOptions. processGroupID = 0
758
758
let psResult = try await Subprocess . run (
759
- . name ( " /bin/bash " ) ,
759
+ . path ( " /bin/bash " ) ,
760
760
arguments: [ " -c " , " ps -o pid,pgid -p $$ " ] ,
761
761
platformOptions: platformOptions,
762
762
output: . string
@@ -782,7 +782,7 @@ extension SubprocessUnixTests {
782
782
// Check the proces ID (pid), pross group ID (pgid), and
783
783
// controling terminal's process group ID (tpgid)
784
784
let psResult = try await Subprocess . run (
785
- . name ( " /bin/bash " ) ,
785
+ . path ( " /bin/bash " ) ,
786
786
arguments: [ " -c " , " ps -o pid,pgid,tpgid -p $$ " ] ,
787
787
platformOptions: platformOptions,
788
788
output: . string
@@ -795,7 +795,7 @@ extension SubprocessUnixTests {
795
795
return
796
796
}
797
797
let result = try await Subprocess . run (
798
- . name ( " /bin/bash " ) ,
798
+ . path ( " /bin/bash " ) ,
799
799
arguments: [
800
800
" -c " ,
801
801
"""
@@ -916,7 +916,7 @@ extension SubprocessUnixTests {
916
916
isEqualTo expected: gid_t
917
917
) async throws {
918
918
let idResult = try await Subprocess . run (
919
- . name ( " /usr/bin/id " ) ,
919
+ . path ( " /usr/bin/id " ) ,
920
920
arguments: [ argument] ,
921
921
platformOptions: platformOptions,
922
922
output: . string
0 commit comments