From 1b32230831542f060d14b2ad31baf119277f8739 Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Mon, 3 Jan 2022 04:25:47 -0600 Subject: Add getresuid/gid and setresuid/gid on BSDs --- test/test_unistd.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'test/test_unistd.rs') diff --git a/test/test_unistd.rs b/test/test_unistd.rs index 59ab24e4..0f56b929 100644 --- a/test/test_unistd.rs +++ b/test/test_unistd.rs @@ -621,7 +621,11 @@ fn test_sysconf_unsupported() { } -#[cfg(any(target_os = "android", target_os = "linux"))] +#[cfg(any(target_os = "android", + target_os = "dragonfly", + target_os = "freebsd", + target_os = "linux", + target_os = "openbsd"))] #[test] fn test_getresuid() { let resuids = getresuid().unwrap(); @@ -630,7 +634,11 @@ fn test_getresuid() { assert!(resuids.saved.as_raw() != libc::uid_t::max_value()); } -#[cfg(any(target_os = "android", target_os = "linux"))] +#[cfg(any(target_os = "android", + target_os = "dragonfly", + target_os = "freebsd", + target_os = "linux", + target_os = "openbsd"))] #[test] fn test_getresgid() { let resgids = getresgid().unwrap(); -- cgit v1.2.3