File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -297,23 +297,23 @@ fn test_interior_nul_in_progname_is_error() {
297
297
298
298
#[ test]
299
299
fn test_interior_nul_in_arg_is_error ( ) {
300
- match Command :: new ( "echo " ) . arg ( "has-some-\0 \0 s-inside" ) . spawn ( ) {
300
+ match Command :: new ( "rustc " ) . arg ( "has-some-\0 \0 s-inside" ) . spawn ( ) {
301
301
Err ( e) => assert_eq ! ( e. kind( ) , ErrorKind :: InvalidInput ) ,
302
302
Ok ( _) => panic ! ( ) ,
303
303
}
304
304
}
305
305
306
306
#[ test]
307
307
fn test_interior_nul_in_args_is_error ( ) {
308
- match Command :: new ( "echo " ) . args ( & [ "has-some-\0 \0 s-inside" ] ) . spawn ( ) {
308
+ match Command :: new ( "rustc " ) . args ( & [ "has-some-\0 \0 s-inside" ] ) . spawn ( ) {
309
309
Err ( e) => assert_eq ! ( e. kind( ) , ErrorKind :: InvalidInput ) ,
310
310
Ok ( _) => panic ! ( ) ,
311
311
}
312
312
}
313
313
314
314
#[ test]
315
315
fn test_interior_nul_in_current_dir_is_error ( ) {
316
- match Command :: new ( "echo " ) . current_dir ( "has-some-\0 \0 s-inside" ) . spawn ( ) {
316
+ match Command :: new ( "rustc " ) . current_dir ( "has-some-\0 \0 s-inside" ) . spawn ( ) {
317
317
Err ( e) => assert_eq ! ( e. kind( ) , ErrorKind :: InvalidInput ) ,
318
318
Ok ( _) => panic ! ( ) ,
319
319
}
You can’t perform that action at this time.
0 commit comments