diff --git a/tests/by-util/test_users.rs b/tests/by-util/test_users.rs index ec77ffff5e0..0d3d7772b83 100644 --- a/tests/by-util/test_users.rs +++ b/tests/by-util/test_users.rs @@ -3,8 +3,8 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. use uutests::new_ucmd; -use uutests::util::TestScenario; -use uutests::util_name; +#[cfg(any(target_vendor = "apple", target_os = "linux"))] +use uutests::{util::TestScenario, util_name}; #[test] fn test_invalid_arg() {