Skip to content

Commit

Permalink
test_unistd: Add comments about not running getgroups/setgroups on Apple
Browse files Browse the repository at this point in the history
  • Loading branch information
JayH5 committed Aug 26, 2017
1 parent 4a3ba28 commit e6fb608
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_unistd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ mod linux_android {
}

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

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

0 comments on commit e6fb608

Please sign in to comment.