Skip to content

Commit

Permalink
cp,tail: fix warnings in tests on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Nov 5, 2023
1 parent 44d105d commit 91b19b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/by-util/test_cp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions tests/by-util/test_tail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
))]
Expand All @@ -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")
))]
Expand Down

0 comments on commit 91b19b7

Please sign in to comment.