1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

Merge pull request #5717 from cakebaker/wc_android

wc: disable part of test on Android
This commit is contained in:
Sylvestre Ledru 2023-12-24 14:52:08 +01:00 committed by GitHub
commit 6b8f71116d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]