Only run owner root test on linux

Because macos doesn't have a "root" user
This commit is contained in:
Thayne McCombs 2022-11-02 23:55:31 -06:00
parent c159ea2042
commit b04cae2ca0
1 changed files with 1 additions and 1 deletions

View File

@ -1949,7 +1949,7 @@ fn test_owner_current_group() {
}
}
#[cfg(unix)]
#[cfg(target_os = "linux")]
#[test]
fn test_owner_root() {
// This test assumes the current user isn't root