This commit is contained in:
The Miri Cronjob Bot 2024-12-04 05:12:09 +00:00
parent 1300e4628d
commit 6c9402012e

View file

@ -48,7 +48,11 @@ fn test_readlink() {
// Test that we report a proper error for a missing path.
let res = unsafe {
libc::readlink(c"MIRI_MISSING_FILE_NAME".as_ptr(), small_buf.as_mut_ptr().cast(), small_buf.len())
libc::readlink(
c"MIRI_MISSING_FILE_NAME".as_ptr(),
small_buf.as_mut_ptr().cast(),
small_buf.len(),
)
};
assert_eq!(res, -1);
assert_eq!(Error::last_os_error().kind(), ErrorKind::NotFound);