summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThayne McCombs <astrothayne@gmail.com>2022-11-02 23:55:31 -0600
committerThayne McCombs <astrothayne@gmail.com>2022-11-02 23:55:31 -0600
commitb04cae2ca07ac114b5abcd2e1be517ed9410c8aa (patch)
tree2366fbd8a1cfa0d1dbd265bac4870064bd6ea4d0
parentc159ea2042656d0e0559c166e6e801fbc5c19193 (diff)
Only run owner root test on linux
Because macos doesn't have a "root" user
-rw-r--r--tests/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 8d0f093..eb24472 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -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