diff options
Diffstat (limited to 'test/test_poll.rs')
-rw-r--r-- | test/test_poll.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_poll.rs b/test/test_poll.rs index aef40e47..d1974acf 100644 --- a/test/test_poll.rs +++ b/test/test_poll.rs @@ -37,14 +37,14 @@ fn test_ppoll() { let mut fds = [PollFd::new(r, PollFlags::POLLIN)]; // Poll an idle pipe. Should timeout - let nfds = ppoll(&mut fds, timeout, SigSet::empty()).unwrap(); + let nfds = ppoll(&mut fds, Some(timeout), SigSet::empty()).unwrap(); assert_eq!(nfds, 0); assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN)); write(w, b".").unwrap(); // Poll a readable pipe. Should return an event. - let nfds = ppoll(&mut fds, timeout, SigSet::empty()).unwrap(); + let nfds = ppoll(&mut fds, Some(timeout), SigSet::empty()).unwrap(); assert_eq!(nfds, 1); assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN)); } |