()
| 2 | #[cfg(not(any(windows, target_os = "cygwin", target_os = "haiku")))] |
| 3 | #[test] |
| 4 | fn test_ioctls() { |
| 5 | let file = std::fs::File::open("Cargo.toml").unwrap(); |
| 6 | |
| 7 | assert_eq!( |
| 8 | rustix::io::ioctl_fionread(&file).unwrap(), |
| 9 | file.metadata().unwrap().len() |
| 10 | ); |
| 11 | } |
| 12 | |
| 13 | #[cfg(all(target_os = "linux", feature = "fs"))] |
| 14 | #[test] |