@@ -932,7 +932,7 @@ mod tests {
932932 #[ test]
933933 #[ cfg_attr( target_os = "android" , ignore) ]
934934 fn smoke ( ) {
935- let p = if cfg ! ( target_os = "windows" ) {
935+ let p = if cfg ! ( target_os = "windows" ) {
936936 Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 0" ] ) . spawn ( )
937937 } else {
938938 Command :: new ( "true" ) . spawn ( )
@@ -954,7 +954,7 @@ mod tests {
954954 #[ test]
955955 #[ cfg_attr( target_os = "android" , ignore) ]
956956 fn exit_reported_right ( ) {
957- let p = if cfg ! ( target_os = "windows" ) {
957+ let p = if cfg ! ( target_os = "windows" ) {
958958 Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 1" ] ) . spawn ( )
959959 } else {
960960 Command :: new ( "false" ) . spawn ( )
@@ -997,7 +997,7 @@ mod tests {
997997 #[ test]
998998 #[ cfg_attr( target_os = "android" , ignore) ]
999999 fn stdout_works ( ) {
1000- if cfg ! ( target_os = "windows" ) {
1000+ if cfg ! ( target_os = "windows" ) {
10011001 let mut cmd = Command :: new ( "cmd" ) ;
10021002 cmd. args ( & [ "/C" , "echo foobar" ] ) . stdout ( Stdio :: piped ( ) ) ;
10031003 assert_eq ! ( run_output( cmd) , "foobar\r \n " ) ;
@@ -1065,14 +1065,14 @@ mod tests {
10651065 #[ test]
10661066 #[ cfg_attr( target_os = "android" , ignore) ]
10671067 fn test_process_status ( ) {
1068- let mut status = if cfg ! ( target_os = "windows" ) {
1068+ let mut status = if cfg ! ( target_os = "windows" ) {
10691069 Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 1" ] ) . status ( ) . unwrap ( )
10701070 } else {
10711071 Command :: new ( "false" ) . status ( ) . unwrap ( )
10721072 } ;
10731073 assert ! ( status. code( ) == Some ( 1 ) ) ;
10741074
1075- status = if cfg ! ( target_os = "windows" ) {
1075+ status = if cfg ! ( target_os = "windows" ) {
10761076 Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 0" ] ) . status ( ) . unwrap ( )
10771077 } else {
10781078 Command :: new ( "true" ) . status ( ) . unwrap ( )
@@ -1092,7 +1092,7 @@ mod tests {
10921092 #[ cfg_attr( target_os = "android" , ignore) ]
10931093 fn test_process_output_output ( ) {
10941094 let Output { status, stdout, stderr}
1095- = if cfg ! ( target_os = "windows" ) {
1095+ = if cfg ! ( target_os = "windows" ) {
10961096 Command :: new ( "cmd" ) . args ( & [ "/C" , "echo hello" ] ) . output ( ) . unwrap ( )
10971097 } else {
10981098 Command :: new ( "echo" ) . arg ( "hello" ) . output ( ) . unwrap ( )
@@ -1108,7 +1108,7 @@ mod tests {
11081108 #[ cfg_attr( target_os = "android" , ignore) ]
11091109 fn test_process_output_error ( ) {
11101110 let Output { status, stdout, stderr}
1111- = if cfg ! ( target_os = "windows" ) {
1111+ = if cfg ! ( target_os = "windows" ) {
11121112 Command :: new ( "cmd" ) . args ( & [ "/C" , "mkdir ." ] ) . output ( ) . unwrap ( )
11131113 } else {
11141114 Command :: new ( "mkdir" ) . arg ( "." ) . output ( ) . unwrap ( )
@@ -1122,7 +1122,7 @@ mod tests {
11221122 #[ test]
11231123 #[ cfg_attr( target_os = "android" , ignore) ]
11241124 fn test_finish_once ( ) {
1125- let mut prog = if cfg ! ( target_os = "windows" ) {
1125+ let mut prog = if cfg ! ( target_os = "windows" ) {
11261126 Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 1" ] ) . spawn ( ) . unwrap ( )
11271127 } else {
11281128 Command :: new ( "false" ) . spawn ( ) . unwrap ( )
@@ -1133,7 +1133,7 @@ mod tests {
11331133 #[ test]
11341134 #[ cfg_attr( target_os = "android" , ignore) ]
11351135 fn test_finish_twice ( ) {
1136- let mut prog = if cfg ! ( target_os = "windows" ) {
1136+ let mut prog = if cfg ! ( target_os = "windows" ) {
11371137 Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 1" ] ) . spawn ( ) . unwrap ( )
11381138 } else {
11391139 Command :: new ( "false" ) . spawn ( ) . unwrap ( )
@@ -1145,7 +1145,7 @@ mod tests {
11451145 #[ test]
11461146 #[ cfg_attr( target_os = "android" , ignore) ]
11471147 fn test_wait_with_output_once ( ) {
1148- let prog = if cfg ! ( target_os = "windows" ) {
1148+ let prog = if cfg ! ( target_os = "windows" ) {
11491149 Command :: new ( "cmd" ) . args ( & [ "/C" , "echo hello" ] ) . stdout ( Stdio :: piped ( ) ) . spawn ( ) . unwrap ( )
11501150 } else {
11511151 Command :: new ( "echo" ) . arg ( "hello" ) . stdout ( Stdio :: piped ( ) ) . spawn ( ) . unwrap ( )
0 commit comments