mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 19:36:16 +00:00
tests/util: Bump rlimit version to 0.9.1 to be able to use prlimit
on android
This commit is contained in:
parent
9fdce975fd
commit
2b5b0c82c1
3 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
|||
#![allow(dead_code)]
|
||||
|
||||
use pretty_assertions::assert_eq;
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
use rlimit::prlimit;
|
||||
use rstest::rstest;
|
||||
#[cfg(unix)]
|
||||
|
@ -1406,7 +1406,7 @@ impl UCommand {
|
|||
|
||||
let child = command.spawn().unwrap();
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
for &(resource, soft_limit, hard_limit) in &self.limits {
|
||||
prlimit(
|
||||
child.id() as i32,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue