diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index 8964665b06..311558d387 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -2120,7 +2120,7 @@ fn test_cp_reflink_insufficient_permission() { .stderr_only("cp: 'unreadable' -> 'existing_file.txt': Permission denied (os error 13)\n"); } -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "android"))] #[test] fn test_closes_file_descriptors() { use procfs::process::Process; @@ -3436,7 +3436,7 @@ fn test_cp_debug_sparse_auto() { } #[test] -#[cfg(any(target_os = "linux", target_os = "android", target_os = "macos"))] +#[cfg(any(target_os = "linux", target_os = "macos"))] fn test_cp_debug_reflink_auto() { let ts = TestScenario::new(util_name!()); let at = &ts.fixtures; diff --git a/tests/by-util/test_tail.rs b/tests/by-util/test_tail.rs index bc89f56a03..c7ca09af8b 100644 --- a/tests/by-util/test_tail.rs +++ b/tests/by-util/test_tail.rs @@ -23,6 +23,7 @@ use std::io::Write; use std::io::{Seek, SeekFrom}; #[cfg(all( not(target_vendor = "apple"), + not(target_os = "android"), not(target_os = "windows"), not(target_os = "freebsd") ))] @@ -31,6 +32,7 @@ use std::process::Stdio; use tail::chunks::BUFFER_SIZE as CHUNK_BUFFER_SIZE; #[cfg(all( not(target_vendor = "apple"), + not(target_os = "android"), not(target_os = "windows"), not(target_os = "freebsd") ))]