diff --git a/test/sys/test_sockopt.rs b/test/sys/test_sockopt.rs index 427edf24e0..1da3f6af38 100644 --- a/test/sys/test_sockopt.rs +++ b/test/sys/test_sockopt.rs @@ -832,6 +832,8 @@ fn test_ktls() { #[test] #[cfg(apple_targets)] fn test_utun_ifname() { + skip_if_not_root!("test_utun_ifname"); + use nix::sys::socket::connect; use nix::sys::socket::SysControlAddr; diff --git a/test/test.rs b/test/test.rs index f32a85a3b7..7153d82aed 100644 --- a/test/test.rs +++ b/test/test.rs @@ -3,6 +3,7 @@ extern crate cfg_if; #[cfg_attr(not(any(target_os = "redox", target_os = "haiku")), macro_use)] extern crate nix; +#[macro_use] mod common; mod mount; mod sys;