From 0384b48b4a6a80a142b11521e23c62ee15525fbe Mon Sep 17 00:00:00 2001 From: strawberry Date: Fri, 22 Mar 2024 20:01:41 -0400 Subject: [PATCH] add main.rs test for unix maximize_fd_limit Signed-off-by: strawberry --- src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.rs b/src/main.rs index eea34744..f61d2231 100644 --- a/src/main.rs +++ b/src/main.rs @@ -921,3 +921,12 @@ fn maximize_fd_limit() -> Result<(), nix::errno::Errno> { Ok(()) } + +#[cfg(test)] +mod test { + use super::*; + + #[cfg(unix)] + #[test] + fn maximize_fd_limit_works() { maximize_fd_limit().unwrap() } +}