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,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();
|
||||
|
@ -436,6 +439,7 @@ fn test_files_from_pseudo_filesystem() {
|
|||
format!("{} /sys/kernel/profiling\n", actual)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_files0_disabled_files_argument() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue