From 7ab6731cf6542e4f43958c07f126fea844d9675c Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Sun, 22 Aug 2021 21:27:33 -0500 Subject: Print function name and missing capability when skipping tests --- test/test_unistd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_unistd.rs') diff --git a/test/test_unistd.rs b/test/test_unistd.rs index 37e7a9b3..cb23ba75 100644 --- a/test/test_unistd.rs +++ b/test/test_unistd.rs @@ -549,7 +549,7 @@ cfg_if!{ if #[cfg(any(target_os = "android", target_os = "linux"))] { macro_rules! require_acct{ () => { - require_capability!(CAP_SYS_PACCT); + require_capability!("test_acct", CAP_SYS_PACCT); } } } else if #[cfg(target_os = "freebsd")] { @@ -1040,7 +1040,7 @@ fn test_user_into_passwd() { fn test_setfsuid() { use std::os::unix::fs::PermissionsExt; use std::{fs, io, thread}; - require_capability!(CAP_SETUID); + require_capability!("test_setfsuid", CAP_SETUID); // get the UID of the "nobody" user let nobody = User::from_name("nobody").unwrap().unwrap(); -- cgit v1.2.3