@@ -290,42 +290,42 @@ fn test_pipe() -> CmdResult {
290290 . wait_with_pipe( & mut |_stdout| { } )
291291 . is_ok( ) ) ;
292292
293- // wait_with_pipe_thread () checks the exit status of the last child, even if pipefail is disabled
293+ // wait_with_borrowed_pipe () checks the exit status of the last child, even if pipefail is disabled
294294 set_pipefail ( false ) ;
295295 assert ! ( spawn_with_output!( true | false ) ?
296- . wait_with_pipe_thread ( |_stdout| { } )
296+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
297297 . is_err( ) ) ;
298298 assert ! ( spawn_with_output!( true | true ) ?
299- . wait_with_pipe_thread ( |_stdout| { } )
299+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
300300 . is_ok( ) ) ;
301301 assert ! ( spawn_with_output!( false ) ?
302- . wait_with_pipe_thread ( |_stdout| { } )
302+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
303303 . is_err( ) ) ;
304304 assert ! ( spawn_with_output!( true ) ?
305- . wait_with_pipe_thread ( |_stdout| { } )
305+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
306306 . is_ok( ) ) ;
307307 set_pipefail ( true ) ;
308- // wait_with_pipe_thread () checks the exit status of the other children, unless pipefail is disabled
308+ // wait_with_borrowed_pipe () checks the exit status of the other children, unless pipefail is disabled
309309 set_pipefail ( false ) ;
310310 assert ! ( spawn_with_output!( false | true ) ?
311- . wait_with_pipe_thread ( |_stdout| { } )
311+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
312312 . is_ok( ) ) ;
313313 set_pipefail ( true ) ;
314314 assert ! ( spawn_with_output!( false | true ) ?
315- . wait_with_pipe_thread ( |_stdout| { } )
315+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
316316 . is_err( ) ) ;
317317 assert ! ( spawn_with_output!( true | true ) ?
318- . wait_with_pipe_thread ( |_stdout| { } )
318+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
319319 . is_ok( ) ) ;
320- // wait_with_pipe_thread () handles `ignore`
320+ // wait_with_borrowed_pipe () handles `ignore`
321321 assert ! ( spawn_with_output!( ignore false | true ) ?
322- . wait_with_pipe_thread ( |_stdout| { } )
322+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
323323 . is_ok( ) ) ;
324324 assert ! ( spawn_with_output!( ignore true | false ) ?
325- . wait_with_pipe_thread ( |_stdout| { } )
325+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
326326 . is_ok( ) ) ;
327327 assert ! ( spawn_with_output!( ignore false ) ?
328- . wait_with_pipe_thread ( |_stdout| { } )
328+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
329329 . is_ok( ) ) ;
330330
331331 Ok ( ( ) )
0 commit comments