diff options
Diffstat (limited to 'test/test_fcntl.rs')
-rw-r--r-- | test/test_fcntl.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_fcntl.rs b/test/test_fcntl.rs index d4a12718..f4adee21 100644 --- a/test/test_fcntl.rs +++ b/test/test_fcntl.rs @@ -492,10 +492,8 @@ mod test_posix_fadvise { fn test_success() { let tmp = NamedTempFile::new().unwrap(); let fd = tmp.as_raw_fd(); - let res = - posix_fadvise(fd, 0, 100, PosixFadviseAdvice::POSIX_FADV_WILLNEED); - - assert!(res.is_ok()); + posix_fadvise(fd, 0, 100, PosixFadviseAdvice::POSIX_FADV_WILLNEED) + .expect("posix_fadvise failed"); } #[test] |