We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee47afe commit 4a3ba28Copy full SHA for 4a3ba28
test/test_unistd.rs
@@ -107,8 +107,8 @@ mod linux_android {
107
#[test]
108
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
109
fn test_setgroups() {
110
+ // Skip this test when not run as root as `setgroups()` requires root.
111
if !Uid::current().is_root() {
- // setgroups() requires root
112
return
113
}
114
@@ -129,8 +129,9 @@ fn test_setgroups() {
129
130
131
fn test_initgroups() {
132
+ // Skip this test when not run as root as `initgroups()` and `setgroups()`
133
+ // require root.
134
- // initgroups(), setgroups() require root
135
136
137
0 commit comments