mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
Merge pull request #5496 from cakebaker/cp_tail_fix_warnings_in_tests
cp,tail: fix warnings in tests on Android
This commit is contained in:
commit
1818632d7c
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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")
|
||||
))]
|
||||
|
|
Loading…
Reference in a new issue