()
| 12 | |
| 13 | #[test] |
| 14 | fn test_close_socket() { |
| 15 | let socket = std::net::TcpListener::bind("127.0.0.1:0").unwrap(); |
| 16 | let raw = socket.into_raw_fd(); |
| 17 | unsafe { |
| 18 | rustix::io::close(raw); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | #[cfg(all(feature = "try_close", any(unix, target_os = "wasi")))] |
| 23 | #[test] |
nothing calls this directly
no test coverage detected