@@ -988,12 +988,11 @@ struct PipeConfigurationTests {
988988 #expect( lineCount == " 1 " )
989989 #expect( result. terminationStatus. isSuccess)
990990 }
991+ #endif
991992
992993 @Test func testProcessHelperWithErrorRedirection( ) async throws {
993994 let pipeline =
994- pipe (
995- Echo ( " data " )
996- )
995+ pipe ( Echo ( " data " ) )
997996 | Cat( ) // Simple passthrough, no error redirection needed
998997 | Wc( " -c " )
999998 |> . string( limit: . max)
@@ -1010,11 +1009,9 @@ struct PipeConfigurationTests {
10101009 @Test func testPipelineErrorHandling( ) async throws {
10111010 // Create a pipeline where one command will fail
10121011 let pipeline =
1013- pipe (
1014- executable: . name( " echo " ) ,
1015- arguments: [ " test " ]
1016- ) | . name( " nonexistent-command " ) // This should fail
1017- | . name ( " cat " ) |> . string( limit: . max)
1012+ pipe ( Echo ( " test " ) )
1013+ | . name ( " nonexistent-command " ) // This should fail
1014+ | Cat( ) |> . string( limit: . max)
10181015
10191016 await #expect( throws: ( any Error ) . self) {
10201017 _ = try await pipeline. run ( )
@@ -1025,8 +1022,7 @@ struct PipeConfigurationTests {
10251022
10261023 @Test func testPipeConfigurationDescription( ) {
10271024 let config = pipe (
1028- executable: . name( " echo " ) ,
1029- arguments: [ " test " ]
1025+ Echo ( " test " )
10301026 ) . finally (
10311027 output: . string( limit: . max)
10321028 )
@@ -1038,12 +1034,9 @@ struct PipeConfigurationTests {
10381034
10391035 @Test func testPipelineDescription( ) {
10401036 let pipeline =
1041- pipe (
1042- executable: . name( " echo " ) ,
1043- arguments: [ " test " ]
1044- )
1045- | . name ( " cat " )
1046- | . name ( " wc " )
1037+ pipe ( Echo ( " test " ) )
1038+ | Cat( )
1039+ | Wc( )
10471040 |> . string( limit: . max)
10481041
10491042 let description = pipeline. description
@@ -1061,7 +1054,6 @@ struct PipeConfigurationTests {
10611054 #expect( result. standardOutput? . trimmingCharacters ( in: CharacterSet . whitespacesAndNewlines) == " helper test " )
10621055 #expect( result. terminationStatus. isSuccess)
10631056 }
1064- #endif
10651057
10661058 @Test func testProcessHelper( ) async throws {
10671059 let pipeline =
0 commit comments