Skip to content

Commit e6fb608

Browse files
committed
test_unistd: Add comments about not running getgroups/setgroups on Apple
1 parent 4a3ba28 commit e6fb608

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_unistd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ mod linux_android {
105105
}
106106

107107
#[test]
108+
// `getgroups()` and `setgroups()` do not behave as expected on Apple platforms
108109
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
109110
fn test_setgroups() {
110111
// Skip this test when not run as root as `setgroups()` requires root.
@@ -127,6 +128,7 @@ fn test_setgroups() {
127128
}
128129

129130
#[test]
131+
// `getgroups()` and `setgroups()` do not behave as expected on Apple platforms
130132
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
131133
fn test_initgroups() {
132134
// Skip this test when not run as root as `initgroups()` and `setgroups()`

0 commit comments

Comments
 (0)