()
| 3 | #[cfg(any(unix, target_os = "wasi"))] |
| 4 | #[test] |
| 5 | fn test_close_file() { |
| 6 | let file = std::fs::File::open("Cargo.toml").unwrap(); |
| 7 | let raw = file.into_raw_fd(); |
| 8 | unsafe { |
| 9 | rustix::io::close(raw); |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | #[test] |
| 14 | fn test_close_socket() { |
nothing calls this directly
no test coverage detected