File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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() {
297297
298298#[ test]
299299fn 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 ( ) {
301301 Err ( e) => assert_eq ! ( e. kind( ) , ErrorKind :: InvalidInput ) ,
302302 Ok ( _) => panic ! ( ) ,
303303 }
304304}
305305
306306#[ test]
307307fn 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 ( ) {
309309 Err ( e) => assert_eq ! ( e. kind( ) , ErrorKind :: InvalidInput ) ,
310310 Ok ( _) => panic ! ( ) ,
311311 }
312312}
313313
314314#[ test]
315315fn 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 ( ) {
317317 Err ( e) => assert_eq ! ( e. kind( ) , ErrorKind :: InvalidInput ) ,
318318 Ok ( _) => panic ! ( ) ,
319319 }
You can’t perform that action at this time.
0 commit comments