@@ -1661,7 +1661,7 @@ mod tests {
1661
1661
// FIXME(#10380) these tests should not all be ignored on android.
1662
1662
1663
1663
#[ test]
1664
- #[ cfg_attr( target_os = "android" , ignore) ]
1664
+ #[ cfg_attr( any ( target_os = "vxworks" , target_os = " android") , ignore) ]
1665
1665
fn smoke ( ) {
1666
1666
let p = if cfg ! ( target_os = "windows" ) {
1667
1667
Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 0" ] ) . spawn ( )
@@ -1683,7 +1683,7 @@ mod tests {
1683
1683
}
1684
1684
1685
1685
#[ test]
1686
- #[ cfg_attr( target_os = "android" , ignore) ]
1686
+ #[ cfg_attr( any ( target_os = "vxworks" , target_os = " android") , ignore) ]
1687
1687
fn exit_reported_right ( ) {
1688
1688
let p = if cfg ! ( target_os = "windows" ) {
1689
1689
Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 1" ] ) . spawn ( )
@@ -1698,7 +1698,7 @@ mod tests {
1698
1698
1699
1699
#[ test]
1700
1700
#[ cfg( unix) ]
1701
- #[ cfg_attr( target_os = "android" , ignore) ]
1701
+ #[ cfg_attr( any ( target_os = "vxworks" , target_os = " android") , ignore) ]
1702
1702
fn signal_reported_right ( ) {
1703
1703
use crate :: os:: unix:: process:: ExitStatusExt ;
1704
1704
@@ -1726,7 +1726,7 @@ mod tests {
1726
1726
}
1727
1727
1728
1728
#[ test]
1729
- #[ cfg_attr( target_os = "android" , ignore) ]
1729
+ #[ cfg_attr( any ( target_os = "vxworks" , target_os = " android") , ignore) ]
1730
1730
fn stdout_works ( ) {
1731
1731
if cfg ! ( target_os = "windows" ) {
1732
1732
let mut cmd = Command :: new ( "cmd" ) ;
@@ -1740,7 +1740,7 @@ mod tests {
1740
1740
}
1741
1741
1742
1742
#[ test]
1743
- #[ cfg_attr( any( windows, target_os = "android" ) , ignore) ]
1743
+ #[ cfg_attr( any( windows, target_os = "android" , target_os = "vxworks" ) , ignore) ]
1744
1744
fn set_current_dir_works ( ) {
1745
1745
let mut cmd = Command :: new ( "/bin/sh" ) ;
1746
1746
cmd. arg ( "-c" ) . arg ( "pwd" )
@@ -1750,7 +1750,7 @@ mod tests {
1750
1750
}
1751
1751
1752
1752
#[ test]
1753
- #[ cfg_attr( any( windows, target_os = "android" ) , ignore) ]
1753
+ #[ cfg_attr( any( windows, target_os = "android" , target_os = "vxworks" ) , ignore) ]
1754
1754
fn stdin_works ( ) {
1755
1755
let mut p = Command :: new ( "/bin/sh" )
1756
1756
. arg ( "-c" ) . arg ( "read line; echo $line" )
@@ -1766,7 +1766,7 @@ mod tests {
1766
1766
}
1767
1767
1768
1768
#[ test]
1769
- #[ cfg_attr( target_os = "android" , ignore) ]
1769
+ #[ cfg_attr( any ( target_os = "vxworks" , target_os = " android") , ignore) ]
1770
1770
fn test_process_status ( ) {
1771
1771
let mut status = if cfg ! ( target_os = "windows" ) {
1772
1772
Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 1" ] ) . status ( ) . unwrap ( )
@@ -1792,7 +1792,7 @@ mod tests {
1792
1792
}
1793
1793
1794
1794
#[ test]
1795
- #[ cfg_attr( target_os = "android" , ignore) ]
1795
+ #[ cfg_attr( any ( target_os = "vxworks" , target_os = " android") , ignore) ]
1796
1796
fn test_process_output_output ( ) {
1797
1797
let Output { status, stdout, stderr}
1798
1798
= if cfg ! ( target_os = "windows" ) {
@@ -1808,7 +1808,7 @@ mod tests {
1808
1808
}
1809
1809
1810
1810
#[ test]
1811
- #[ cfg_attr( target_os = "android" , ignore) ]
1811
+ #[ cfg_attr( any ( target_os = "vxworks" , target_os = " android") , ignore) ]
1812
1812
fn test_process_output_error ( ) {
1813
1813
let Output { status, stdout, stderr}
1814
1814
= if cfg ! ( target_os = "windows" ) {
@@ -1823,7 +1823,7 @@ mod tests {
1823
1823
}
1824
1824
1825
1825
#[ test]
1826
- #[ cfg_attr( target_os = "android" , ignore) ]
1826
+ #[ cfg_attr( any ( target_os = "vxworks" , target_os = " android") , ignore) ]
1827
1827
fn test_finish_once ( ) {
1828
1828
let mut prog = if cfg ! ( target_os = "windows" ) {
1829
1829
Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 1" ] ) . spawn ( ) . unwrap ( )
@@ -1834,7 +1834,7 @@ mod tests {
1834
1834
}
1835
1835
1836
1836
#[ test]
1837
- #[ cfg_attr( target_os = "android" , ignore) ]
1837
+ #[ cfg_attr( any ( target_os = "vxworks" , target_os = " android") , ignore) ]
1838
1838
fn test_finish_twice ( ) {
1839
1839
let mut prog = if cfg ! ( target_os = "windows" ) {
1840
1840
Command :: new ( "cmd" ) . args ( & [ "/C" , "exit 1" ] ) . spawn ( ) . unwrap ( )
@@ -1846,7 +1846,7 @@ mod tests {
1846
1846
}
1847
1847
1848
1848
#[ test]
1849
- #[ cfg_attr( target_os = "android" , ignore) ]
1849
+ #[ cfg_attr( any ( target_os = "vxworks" , target_os = " android") , ignore) ]
1850
1850
fn test_wait_with_output_once ( ) {
1851
1851
let prog = if cfg ! ( target_os = "windows" ) {
1852
1852
Command :: new ( "cmd" ) . args ( & [ "/C" , "echo hello" ] ) . stdout ( Stdio :: piped ( ) ) . spawn ( ) . unwrap ( )
@@ -1881,6 +1881,7 @@ mod tests {
1881
1881
}
1882
1882
1883
1883
#[ test]
1884
+ #[ cfg_attr( target_os = "vxworks" , ignore) ]
1884
1885
fn test_override_env ( ) {
1885
1886
use crate :: env;
1886
1887
@@ -1901,6 +1902,7 @@ mod tests {
1901
1902
}
1902
1903
1903
1904
#[ test]
1905
+ #[ cfg_attr( target_os = "vxworks" , ignore) ]
1904
1906
fn test_add_to_env ( ) {
1905
1907
let result = env_cmd ( ) . env ( "RUN_TEST_NEW_ENV" , "123" ) . output ( ) . unwrap ( ) ;
1906
1908
let output = String :: from_utf8_lossy ( & result. stdout ) . to_string ( ) ;
@@ -1910,6 +1912,7 @@ mod tests {
1910
1912
}
1911
1913
1912
1914
#[ test]
1915
+ #[ cfg_attr( target_os = "vxworks" , ignore) ]
1913
1916
fn test_capture_env_at_spawn ( ) {
1914
1917
use crate :: env;
1915
1918
@@ -1965,6 +1968,7 @@ mod tests {
1965
1968
1966
1969
// Regression tests for #30862.
1967
1970
#[ test]
1971
+ #[ cfg_attr( target_os = "vxworks" , ignore) ]
1968
1972
fn test_interior_nul_in_env_key_is_error ( ) {
1969
1973
match env_cmd ( ) . env ( "has-some-\0 \0 s-inside" , "value" ) . spawn ( ) {
1970
1974
Err ( e) => assert_eq ! ( e. kind( ) , ErrorKind :: InvalidInput ) ,
@@ -1973,6 +1977,7 @@ mod tests {
1973
1977
}
1974
1978
1975
1979
#[ test]
1980
+ #[ cfg_attr( target_os = "vxworks" , ignore) ]
1976
1981
fn test_interior_nul_in_env_value_is_error ( ) {
1977
1982
match env_cmd ( ) . env ( "key" , "has-some-\0 \0 s-inside" ) . spawn ( ) {
1978
1983
Err ( e) => assert_eq ! ( e. kind( ) , ErrorKind :: InvalidInput ) ,
0 commit comments