add main.rs test for unix maximize_fd_limit

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-22 20:01:41 -04:00 committed by June
parent 74c34e885e
commit 0384b48b4a

View file

@ -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() }
}