diff options
author | Tom Pusateri <pusateri@bangj.com> | 2018-12-05 14:26:01 -0500 |
---|---|---|
committer | Tom Pusateri <pusateri@bangj.com> | 2018-12-16 22:16:27 -0500 |
commit | d1395511a653f216f3223c9a64673291ab1a9045 (patch) | |
tree | de48481e31fb05255762695dec14ab72c6966f67 /test/test_poll.rs | |
parent | 51bd0859aa4826687b48e141ee83d9d12f96e7e2 (diff) | |
download | nix-d1395511a653f216f3223c9a64673291ab1a9045.zip |
Allow 'cargo test' to complete successfully on NetBSD 8.0.
Some tests have been disabled and will need further review.
Diffstat (limited to 'test/test_poll.rs')
-rw-r--r-- | test/test_poll.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_poll.rs b/test/test_poll.rs index a9831ed4..23df1517 100644 --- a/test/test_poll.rs +++ b/test/test_poll.rs @@ -1,6 +1,4 @@ use nix::poll::{EventFlags, poll, PollFd}; -use nix::sys::signal::SigSet; -use nix::sys::time::{TimeSpec, TimeValLike}; use nix::unistd::{write, pipe, close}; #[test] @@ -49,6 +47,9 @@ fn test_poll_debug() { #[test] fn test_ppoll() { use nix::poll::ppoll; + use nix::sys::signal::SigSet; + use nix::sys::time::{TimeSpec, TimeValLike}; + let timeout = TimeSpec::milliseconds(1); let (r, w) = pipe().unwrap(); let mut fds = [PollFd::new(r, EventFlags::POLLIN)]; |