From f90e6127776a06d87e17623ec42b1d1bc34b7e2b Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Sat, 13 Apr 2024 20:34:31 +0800 Subject: [PATCH] test: skip test_utun_ifname if unpriviledged --- test/sys/test_sockopt.rs | 2 ++ 1 file changed, 2 insertions(+) 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;