MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / test_ioctls

Function test_ioctls

tests/io/ioctl.rs:4–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2#[cfg(not(any(windows, target_os = "cygwin", target_os = "haiku")))]
3#[test]
4fn 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]

Callers

nothing calls this directly

Calls 1

openFunction · 0.50

Tested by

no test coverage detected