Skip to content
Myr

Only run owner root test on linux

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Because macos doesn't have a "root" user

authored by Thayne McCombs · committed by Thayne McCombs · parent c159ea2 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/tests.rs+1 added-1 removed
1947 unmodified lines
1948 te.assert_output(&["--owner", &format!(":{}", groupname), "a.foo"], "a.foo");1949 }1950}19511952#[cfg(unix)]1952#[cfg(target_os = "linux")]1953#[test]1954fn test_owner_root() {1955 // This test assumes the current user isn't root1956 if users::get_current_uid() == 0 || users::get_current_gid() == 0 {
264 unmodified lines