Skip to content

Commit

Permalink
test: skip test_utun_ifname if unpriviledged (#2371)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored Apr 13, 2024
1 parent b8033c2 commit b6c55ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/sys/test_sockopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions test/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b6c55ad

Please sign in to comment.