diff --git a/tests/by-util/test_chmod.rs b/tests/by-util/test_chmod.rs index acba00854..697bc939e 100644 --- a/tests/by-util/test_chmod.rs +++ b/tests/by-util/test_chmod.rs @@ -538,6 +538,7 @@ fn test_invalid_arg() { } #[test] +#[cfg(not(target_os = "android"))] fn test_mode_after_dash_dash() { let (at, ucmd) = at_and_ucmd!(); run_single_test( diff --git a/tests/by-util/test_sort.rs b/tests/by-util/test_sort.rs index a61db56b0..114907393 100644 --- a/tests/by-util/test_sort.rs +++ b/tests/by-util/test_sort.rs @@ -876,7 +876,7 @@ fn sort_empty_chunk() { } #[test] -#[cfg(any(target_os = "linux", target_os = "android"))] +#[cfg(target_os = "linux")] fn test_compress() { new_ucmd!() .args(&[