From b04cae2ca07ac114b5abcd2e1be517ed9410c8aa Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Wed, 2 Nov 2022 23:55:31 -0600 Subject: [PATCH] Only run owner root test on linux Because macos doesn't have a "root" user --- tests/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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