Skip to content

Commit

Permalink
got rid of offset
Browse files Browse the repository at this point in the history
  • Loading branch information
aoprisan committed Jun 10, 2016
1 parent 73f6c5c commit fea671a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/test_unistd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,11 @@ fn test_lseek() {
#[cfg(any(target_os = "linux", target_os = "android"))]
#[test]
fn test_lseek64() {
use libc::off_t;

const CONTENTS: &'static [u8] = b"abcdef123456";
let mut tmp = tempfile().unwrap();
tmp.write(CONTENTS).unwrap();

let offset: libc::off64_t = 5;
lseek64(tmp.as_raw_fd(), offset, Whence::SeekSet).unwrap();
lseek64(tmp.as_raw_fd(), 5, Whence::SeekSet).unwrap();

let mut buf = String::new();
tmp.read_to_string(&mut buf).unwrap();
Expand Down

0 comments on commit fea671a

Please sign in to comment.