diff options
author | Mikail Bagishov <bagishov.mikail@yandex.ru> | 2020-07-05 23:36:35 +0300 |
---|---|---|
committer | Mikail Bagishov <bagishov.mikail@yandex.ru> | 2020-07-26 23:19:57 +0300 |
commit | cbcc42deb65ba306b7b78f9e896bbf41fff5672f (patch) | |
tree | 24a351ec31afcaf8a46fd52102e7a1dea0dc62d4 /test/test_poll.rs | |
parent | 57b6bd77002830526b1a8160d7c499584d2d2a8b (diff) | |
download | nix-cbcc42deb65ba306b7b78f9e896bbf41fff5672f.zip |
Support nullable timeout in ppoll
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)); } |