diff --git a/Cargo.lock b/Cargo.lock index 6d210d303..05b2a1e1e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1833,9 +1833,9 @@ dependencies = [ [[package]] name = "rlimit" -version = "0.8.3" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7278a1ec8bfd4a4e07515c589f5ff7b309a373f987393aef44813d9dcf87aa3" +checksum = "f8a29d87a652dc4d43c586328706bb5cdff211f3f39a530f240b53f7221dab8e" dependencies = [ "libc", ] diff --git a/Cargo.toml b/Cargo.toml index ebd8685ca..9e5e0570a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -482,7 +482,7 @@ rstest = "0.16.0" [target.'cfg(any(target_os = "linux", target_os = "android"))'.dev-dependencies] procfs = { version = "0.14", default-features = false } -rlimit = "0.8.3" +rlimit = "0.9.1" [target.'cfg(unix)'.dev-dependencies] nix = { workspace=true, features=["process", "signal", "user"] } diff --git a/tests/common/util.rs b/tests/common/util.rs index ed4ecf8e9..eee47eca9 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -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,