summaryrefslogtreecommitdiff
path: root/test/test_unistd.rs
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2021-08-22 21:27:33 -0500
committerRyan Zoeller <rtzoeller@rtzoeller.com>2021-08-22 21:27:33 -0500
commit7ab6731cf6542e4f43958c07f126fea844d9675c (patch)
tree603c6c4330a2d22d2500327df15c18fbb9906af1 /test/test_unistd.rs
parentdab7332eabed8646f6d01a0d0688b4d1438accb4 (diff)
downloadnix-7ab6731cf6542e4f43958c07f126fea844d9675c.zip
Print function name and missing capability when skipping tests
Diffstat (limited to 'test/test_unistd.rs')
-rw-r--r--test/test_unistd.rs4
1 files changed, 2 insertions, 2 deletions
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();