@@ -177,42 +177,42 @@ fn test_pipe() -> CmdResult {
177
177
. wait_with_pipe( & mut |_stdout| { } )
178
178
. is_ok( ) ) ;
179
179
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
181
181
set_pipefail ( false ) ;
182
182
assert ! ( spawn_with_output!( true | false ) ?
183
- . wait_with_pipe_thread ( |_stdout| { } )
183
+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
184
184
. is_err( ) ) ;
185
185
assert ! ( spawn_with_output!( true | true ) ?
186
- . wait_with_pipe_thread ( |_stdout| { } )
186
+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
187
187
. is_ok( ) ) ;
188
188
assert ! ( spawn_with_output!( false ) ?
189
- . wait_with_pipe_thread ( |_stdout| { } )
189
+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
190
190
. is_err( ) ) ;
191
191
assert ! ( spawn_with_output!( true ) ?
192
- . wait_with_pipe_thread ( |_stdout| { } )
192
+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
193
193
. is_ok( ) ) ;
194
194
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
196
196
set_pipefail ( false ) ;
197
197
assert ! ( spawn_with_output!( false | true ) ?
198
- . wait_with_pipe_thread ( |_stdout| { } )
198
+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
199
199
. is_ok( ) ) ;
200
200
set_pipefail ( true ) ;
201
201
assert ! ( spawn_with_output!( false | true ) ?
202
- . wait_with_pipe_thread ( |_stdout| { } )
202
+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
203
203
. is_err( ) ) ;
204
204
assert ! ( spawn_with_output!( true | true ) ?
205
- . wait_with_pipe_thread ( |_stdout| { } )
205
+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
206
206
. is_ok( ) ) ;
207
- // wait_with_pipe_thread () handles `ignore`
207
+ // wait_with_borrowed_pipe () handles `ignore`
208
208
assert ! ( spawn_with_output!( ignore false | true ) ?
209
- . wait_with_pipe_thread ( |_stdout| { } )
209
+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
210
210
. is_ok( ) ) ;
211
211
assert ! ( spawn_with_output!( ignore true | false ) ?
212
- . wait_with_pipe_thread ( |_stdout| { } )
212
+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
213
213
. is_ok( ) ) ;
214
214
assert ! ( spawn_with_output!( ignore false ) ?
215
- . wait_with_pipe_thread ( |_stdout| { } )
215
+ . wait_with_borrowed_pipe ( & mut |_stdout| { } )
216
216
. is_ok( ) ) ;
217
217
218
218
Ok ( ( ) )
0 commit comments