summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2017-07-20 20:00:00 +0200
committerJonas Schievink <jonasschievink@gmail.com>2017-12-04 20:29:40 +0100
commit512c35121e62062a802dadd787ee3dbda340a624 (patch)
tree3422316250d96771736e1c0b4666f2b57b3d49fc /test
parent86ebf7b0eac4cd0d092b816060042c55ca8871c5 (diff)
downloadnix-512c35121e62062a802dadd787ee3dbda340a624.zip
Stop reexporting `Errno` and its variants
cc #664 (unsure if this is everything needed)
Diffstat (limited to 'test')
-rw-r--r--test/sys/test_epoll.rs3
-rw-r--r--test/sys/test_ioctl.rs4
-rw-r--r--test/sys/test_socket.rs3
3 files changed, 6 insertions, 4 deletions
diff --git a/test/sys/test_epoll.rs b/test/sys/test_epoll.rs
index e32a4e23..e0dc5131 100644
--- a/test/sys/test_epoll.rs
+++ b/test/sys/test_epoll.rs
@@ -1,6 +1,7 @@
use nix::sys::epoll::{EpollCreateFlags, EpollFlags, EpollOp, EpollEvent};
use nix::sys::epoll::{epoll_create1, epoll_ctl};
-use nix::{Error, Errno};
+use nix::Error;
+use nix::errno::Errno;
#[test]
pub fn test_epoll_errno() {
diff --git a/test/sys/test_ioctl.rs b/test/sys/test_ioctl.rs
index 1b9e464b..1ed4a4b4 100644
--- a/test/sys/test_ioctl.rs
+++ b/test/sys/test_ioctl.rs
@@ -210,7 +210,7 @@ mod linux_ioctls {
use libc::{TCGETS, TCSBRK, TCSETS, TIOCNXCL, termios};
use nix::Error::Sys;
- use nix::errno::{ENOTTY, ENOSYS};
+ use nix::errno::Errno::{ENOTTY, ENOSYS};
ioctl!(bad none tiocnxcl with TIOCNXCL);
#[test]
@@ -345,7 +345,7 @@ mod freebsd_ioctls {
use libc::termios;
use nix::Error::Sys;
- use nix::errno::ENOTTY;
+ use nix::errno::Errno::ENOTTY;
// From sys/sys/ttycom.h
const TTY_IOC_MAGIC: u8 = b't';
diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs
index 8ec7f1fd..d29b2ecb 100644
--- a/test/sys/test_socket.rs
+++ b/test/sys/test_socket.rs
@@ -242,7 +242,8 @@ pub fn test_unixdomain() {
#[cfg(any(target_os = "macos", target_os = "ios"))]
#[test]
pub fn test_syscontrol() {
- use nix::{Errno, Error};
+ use nix::Error;
+ use nix::errno::Errno;
use nix::sys::socket::{AddressFamily, socket, SockAddr, SockType, SockFlag, SockProtocol};
let fd = socket(AddressFamily::System, SockType::Datagram,