Skip to content

Commit b6c55ad

Browse files
authored
test: skip test_utun_ifname if unpriviledged (#2371)
1 parent b8033c2 commit b6c55ad

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/sys/test_sockopt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,8 @@ fn test_ktls() {
832832
#[test]
833833
#[cfg(apple_targets)]
834834
fn test_utun_ifname() {
835+
skip_if_not_root!("test_utun_ifname");
836+
835837
use nix::sys::socket::connect;
836838
use nix::sys::socket::SysControlAddr;
837839

test/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ extern crate cfg_if;
33
#[cfg_attr(not(any(target_os = "redox", target_os = "haiku")), macro_use)]
44
extern crate nix;
55

6+
#[macro_use]
67
mod common;
78
mod mount;
89
mod sys;

0 commit comments

Comments
 (0)