Skip to content

Commit e0b94c7

Browse files
committed
also assert that returned position is as expected in test_lseek_largefile
1 parent 10d3fea commit e0b94c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_unistd.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ fn test_lseek_largefile() {
586586
.expect("Cannot test lseek with large offsets: std::io seek failed");
587587
tmp.write_all(CONTENTS)
588588
.expect("Cannot test lseek with large offsets: write_all failed");
589-
assert!(lseek(tmp.as_raw_fd(), offset, Whence::SeekSet).is_ok());
589+
assert_eq!(lseek(tmp.as_raw_fd(), offset, Whence::SeekSet), Ok(offset));
590590
let mut buf = [0u8; 12];
591591
crate::read_exact(&tmp, &mut buf);
592592
assert_eq!(b"example text", &buf);

0 commit comments

Comments
 (0)