1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

wc: disable part of test on Android

This commit is contained in:
Daniel Hofstetter 2023-12-24 13:20:57 +01:00
parent 6b1f51385f
commit df492d34cb

View file

@ -428,6 +428,9 @@ fn test_files_from_pseudo_filesystem() {
let result = new_ucmd!().arg("-c").arg("/proc/cpuinfo").succeeds();
assert_ne!(result.stdout_str(), "0 /proc/cpuinfo\n");
// the following block fails on Android with a "Permission denied" error
#[cfg(target_os = "linux")]
{
let (at, mut ucmd) = at_and_ucmd!();
let result = ucmd.arg("-c").arg("/sys/kernel/profiling").succeeds();
let actual = at.read("/sys/kernel/profiling").len();
@ -435,6 +438,7 @@ fn test_files_from_pseudo_filesystem() {
result.stdout_str(),
format!("{} /sys/kernel/profiling\n", actual)
);
}
}
#[test]