summaryrefslogtreecommitdiff
path: root/test/test_resource.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_resource.rs')
-rw-r--r--test/test_resource.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_resource.rs b/test/test_resource.rs
index c89d601e..f96bf903 100644
--- a/test/test_resource.rs
+++ b/test/test_resource.rs
@@ -1,4 +1,4 @@
-#[cfg(not(any(target_os = "redox", target_os = "fuchsia", target_os = "illumos")))]
+#[cfg(not(any(target_os = "redox", target_os = "fuchsia", target_os = "illumos", target_os = "haiku")))]
use nix::sys::resource::{getrlimit, setrlimit, Resource};
/// Tests the RLIMIT_NOFILE functionality of getrlimit(), where the resource RLIMIT_NOFILE refers
@@ -10,7 +10,7 @@ use nix::sys::resource::{getrlimit, setrlimit, Resource};
/// to put the new soft limit in effect, and then getrlimit() once more to ensure the limits have
/// been updated.
#[test]
-#[cfg(not(any(target_os = "redox", target_os = "fuchsia", target_os = "illumos")))]
+#[cfg(not(any(target_os = "redox", target_os = "fuchsia", target_os = "illumos", target_os = "haiku")))]
pub fn test_resource_limits_nofile() {
let (mut soft_limit, hard_limit) = getrlimit(Resource::RLIMIT_NOFILE).unwrap();