add main.rs test for unix maximize_fd_limit
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
74c34e885e
commit
0384b48b4a
1 changed files with 9 additions and 0 deletions
|
@ -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() }
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue