diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-01-11 05:00:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 05:00:16 +0000 |
commit | b641788f8f94b250cfbb040b37174829ef7f251c (patch) | |
tree | 0ccb135eecfefa3767098c8e1f666c6fdcd585ca /test | |
parent | f6268d984489f0304565cf996e3d9396da540a0a (diff) | |
parent | 1b32230831542f060d14b2ad31baf119277f8739 (diff) | |
download | nix-b641788f8f94b250cfbb040b37174829ef7f251c.zip |
Merge #1628
1628: Add getresuid/gid and setresuid/gid on BSDs r=asomers a=rtzoeller
Co-authored-by: Ryan Zoeller <rtzoeller@rtzoeller.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_unistd.rs | 12 |
1 files changed, 10 insertions, 2 deletions
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(); |