@@ -177,42 +177,42 @@ fn test_pipe() -> CmdResult {
177177 . wait_with_pipe( & mut |_stdout| { } )
178178 . is_ok( ) ) ;
179179
180- // wait_with_pipe_thread () checks the exit status of the last child, even if pipefail is disabled
180+ // wait_with_borrowed_pipe () checks the exit status of the last child, even if pipefail is disabled
181181 set_pipefail ( false ) ;
182182 assert ! ( spawn_with_output!( true | false ) ?
183- . wait_with_pipe_thread ( |_stdout| { } )
183+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
184184 . is_err( ) ) ;
185185 assert ! ( spawn_with_output!( true | true ) ?
186- . wait_with_pipe_thread ( |_stdout| { } )
186+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
187187 . is_ok( ) ) ;
188188 assert ! ( spawn_with_output!( false ) ?
189- . wait_with_pipe_thread ( |_stdout| { } )
189+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
190190 . is_err( ) ) ;
191191 assert ! ( spawn_with_output!( true ) ?
192- . wait_with_pipe_thread ( |_stdout| { } )
192+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
193193 . is_ok( ) ) ;
194194 set_pipefail ( true ) ;
195- // wait_with_pipe_thread () checks the exit status of the other children, unless pipefail is disabled
195+ // wait_with_borrowed_pipe () checks the exit status of the other children, unless pipefail is disabled
196196 set_pipefail ( false ) ;
197197 assert ! ( spawn_with_output!( false | true ) ?
198- . wait_with_pipe_thread ( |_stdout| { } )
198+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
199199 . is_ok( ) ) ;
200200 set_pipefail ( true ) ;
201201 assert ! ( spawn_with_output!( false | true ) ?
202- . wait_with_pipe_thread ( |_stdout| { } )
202+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
203203 . is_err( ) ) ;
204204 assert ! ( spawn_with_output!( true | true ) ?
205- . wait_with_pipe_thread ( |_stdout| { } )
205+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
206206 . is_ok( ) ) ;
207- // wait_with_pipe_thread () handles `ignore`
207+ // wait_with_borrowed_pipe () handles `ignore`
208208 assert ! ( spawn_with_output!( ignore false | true ) ?
209- . wait_with_pipe_thread ( |_stdout| { } )
209+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
210210 . is_ok( ) ) ;
211211 assert ! ( spawn_with_output!( ignore true | false ) ?
212- . wait_with_pipe_thread ( |_stdout| { } )
212+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
213213 . is_ok( ) ) ;
214214 assert ! ( spawn_with_output!( ignore false ) ?
215- . wait_with_pipe_thread ( |_stdout| { } )
215+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
216216 . is_ok( ) ) ;
217217
218218 Ok ( ( ) )
0 commit comments