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:
parent
6b1f51385f
commit
df492d34cb
1 changed files with 11 additions and 7 deletions
|
@ -428,13 +428,17 @@ fn test_files_from_pseudo_filesystem() {
|
||||||
let result = new_ucmd!().arg("-c").arg("/proc/cpuinfo").succeeds();
|
let result = new_ucmd!().arg("-c").arg("/proc/cpuinfo").succeeds();
|
||||||
assert_ne!(result.stdout_str(), "0 /proc/cpuinfo\n");
|
assert_ne!(result.stdout_str(), "0 /proc/cpuinfo\n");
|
||||||
|
|
||||||
let (at, mut ucmd) = at_and_ucmd!();
|
// the following block fails on Android with a "Permission denied" error
|
||||||
let result = ucmd.arg("-c").arg("/sys/kernel/profiling").succeeds();
|
#[cfg(target_os = "linux")]
|
||||||
let actual = at.read("/sys/kernel/profiling").len();
|
{
|
||||||
assert_eq!(
|
let (at, mut ucmd) = at_and_ucmd!();
|
||||||
result.stdout_str(),
|
let result = ucmd.arg("-c").arg("/sys/kernel/profiling").succeeds();
|
||||||
format!("{} /sys/kernel/profiling\n", actual)
|
let actual = at.read("/sys/kernel/profiling").len();
|
||||||
);
|
assert_eq!(
|
||||||
|
result.stdout_str(),
|
||||||
|
format!("{} /sys/kernel/profiling\n", actual)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue