mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
wc: disable part of test on Android
This commit is contained in:
@@ -428,13 +428,17 @@ 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");
|
||||
|
||||
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();
|
||||
assert_eq!(
|
||||
result.stdout_str(),
|
||||
format!("{} /sys/kernel/profiling\n", actual)
|
||||
);
|
||||
// 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();
|
||||
assert_eq!(
|
||||
result.stdout_str(),
|
||||
format!("{} /sys/kernel/profiling\n", actual)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user