Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/by-util/test_dd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2338,7 +2338,7 @@ fn test_nocache_eof() {
}

#[test]
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
#[cfg(not(wasi_runner))]
fn test_nocache_eof_fadvise_zero_length() {
use std::process::Command;
Expand Down
6 changes: 3 additions & 3 deletions tests/by-util/test_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ fn test_install_basic_try_reflink() {
at.touch(file1);
at.touch(file2);
at.mkdir(dir);
#[cfg(not(target_os = "linux"))]
#[cfg(not(any(target_os = "linux", target_os = "android")))]
ucmd.arg(file1).arg(file2).arg(dir).succeeds().no_stderr();
// mkfs.btrfs needs root. use strace instead.
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
if std::process::Command::new("strace")
.args(["-qqq", "-o", "strace.out", "-e", "trace=ioctl"])
.arg(uutests::util::get_tests_binary())
Expand Down Expand Up @@ -3379,7 +3379,7 @@ fn test_install_d_parallel_mkdir_race() {
}

#[test]
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
fn test_install_target_without_splice_support() {
// Does eCryptfs not support splice on some kernel?
use std::process::Command;
Expand Down
4 changes: 2 additions & 2 deletions tests/by-util/test_ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8440,7 +8440,7 @@ fn test_long_options_detached() {
// Without -R a directory can never be revisited, so ls should not spend a stat
// recording it for the loop detection that only recursion consults.
#[test]
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
#[cfg(not(wasi_runner))]
fn test_no_extra_stat_without_recursion() {
use std::process::Command;
Expand Down Expand Up @@ -8699,7 +8699,7 @@ fn test_ls_dereference_sibling_alias_not_already_listed() {
#[case(&["-lLZ", "."], "./entry")]
#[case(&["-lLd", "entry"], "entry")]
#[case(&["--dereference-command-line-symlink-to-dir", "-d", "--color=always", "entry"], "entry")]
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
#[cfg(not(wasi_runner))]
fn test_dereferenced_metadata_is_cached(#[case] args: &[&str], #[case] path: &str) {
use std::process::Command;
Expand Down
2 changes: 1 addition & 1 deletion tests/by-util/test_rm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ fn test_preserve_root_literal_root() {

/// `rm -rf / --no-preserve-root` must get past the failsafe. `strace` fakes the
/// removals and sends SIGINT on the first one, so nothing is deleted.
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
#[test]
fn test_no_preserve_root_literal_root() {
use std::os::unix::process::ExitStatusExt;
Expand Down
4 changes: 2 additions & 2 deletions tests/by-util/test_shred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ fn test_shred_socket() {
}

#[test]
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
#[cfg(not(wasi_runner))]
fn test_stat_failure_reports_open_error() {
// Make stat and open fail with different errors on the same path: the
Expand Down Expand Up @@ -764,7 +764,7 @@ fn test_stat_failure_reports_open_error() {
}

#[test]
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
#[cfg(not(wasi_runner))]
fn test_remove_reports_truncate_failure() {
// When the data cannot be deallocated, say so and keep the file.
Expand Down
2 changes: 1 addition & 1 deletion tests/by-util/test_shuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn test_invalid_arg() {

#[uutests::wasi_ignore(NoSubprocessSpawning)]
#[test]
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
fn test_getrandom_fail() {
// getrandom is missing from legacy kernel
use std::process::Command;
Expand Down
Loading