summaryrefslogtreecommitdiff
path: root/test/test_poll.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_poll.rs')
-rw-r--r--test/test_poll.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_poll.rs b/test/test_poll.rs
index acfaad8b..0395512b 100644
--- a/test/test_poll.rs
+++ b/test/test_poll.rs
@@ -1,5 +1,4 @@
use nix::{
- Error,
errno::Errno,
poll::{PollFlags, poll, PollFd},
unistd::{write, pipe}
@@ -10,7 +9,7 @@ macro_rules! loop_while_eintr {
loop {
match $poll_expr {
Ok(nfds) => break nfds,
- Err(Error::Sys(Errno::EINTR)) => (),
+ Err(Errno::EINTR) => (),
Err(e) => panic!("{}", e)
}
}