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

test_*: Disable tests that require setting rlimit on Android

See #7542, it's not totally clear where the problem comes from,
but blanking LD_PRELOAD set by termux seems to fix the problem
(but introduces other issues.

Let's just disable these tests for now.
This commit is contained in:
Nicolas Boichat 2025-03-23 18:14:10 +01:00
parent 7eb873c326
commit b142b9e748
3 changed files with 9 additions and 3 deletions

View file

@ -98,7 +98,9 @@ fn test_fifo_symlink() {
} }
#[test] #[test]
#[cfg(any(target_os = "linux", target_os = "android"))] // TODO(#7542): Re-enable on Android once we figure out why setting limit is broken.
// #[cfg(any(target_os = "linux", target_os = "android"))]
#[cfg(target_os = "linux")]
fn test_closes_file_descriptors() { fn test_closes_file_descriptors() {
// Each file creates a pipe, which has two file descriptors. // Each file creates a pipe, which has two file descriptors.
// If they are not closed then five is certainly too many. // If they are not closed then five is certainly too many.

View file

@ -1090,7 +1090,9 @@ fn test_merge_batch_size() {
} }
#[test] #[test]
#[cfg(any(target_os = "linux", target_os = "android"))] // TODO(#7542): Re-enable on Android once we figure out why setting limit is broken.
// #[cfg(any(target_os = "linux", target_os = "android"))]
#[cfg(target_os = "linux")]
fn test_merge_batch_size_with_limit() { fn test_merge_batch_size_with_limit() {
use rlimit::Resource; use rlimit::Resource;
// Currently need... // Currently need...

View file

@ -1627,7 +1627,9 @@ fn test_round_robin() {
} }
#[test] #[test]
#[cfg(any(target_os = "linux", target_os = "android"))] // TODO(#7542): Re-enable on Android once we figure out why rlimit is broken.
// #[cfg(any(target_os = "linux", target_os = "android"))]
#[cfg(target_os = "linux")]
fn test_round_robin_limited_file_descriptors() { fn test_round_robin_limited_file_descriptors() {
new_ucmd!() new_ucmd!()
.args(&["-n", "r/40", "onehundredlines.txt"]) .args(&["-n", "r/40", "onehundredlines.txt"])