Skip to content

Commit

Permalink
test: skip test_utun_ifname if unpriviledged
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Apr 13, 2024
1 parent 95d1285 commit 3e312b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/sys/test_sockopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,11 @@ fn test_ktls() {
#[test]
#[cfg(apple_targets)]
fn test_utun_ifname() {
// Skip this is the current process is not priviledged
if !nix::unistd::Uid::effective().is_root() {
return;
}

use nix::sys::socket::connect;
use nix::sys::socket::SysControlAddr;

Expand Down

0 comments on commit 3e312b8

Please sign in to comment.