blob: 7dddfa6661388af7ef3c1765166df61bb5f7b17c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@only-target: apple # F_FULLFSYNC only on apple systems
//@compile-flags: -Zmiri-isolation-error=warn-nobacktrace
use std::io::Error;
fn main() {
// test `fcntl(F_FULLFSYNC)`
unsafe {
assert_eq!(libc::fcntl(1, libc::F_FULLFSYNC, 0), -1);
assert_eq!(Error::last_os_error().raw_os_error(), Some(libc::EPERM));
}
}
|