From 5ad17f3b7984407c0d02acd6f9957fac43fd4d1c Mon Sep 17 00:00:00 2001 From: Marco Conte Date: Tue, 28 Jan 2020 18:09:27 +0000 Subject: [PATCH] move conditional compilation attribute to include the whole test module --- src/unistd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unistd.rs b/src/unistd.rs index f08f6d865f..183586a018 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -2753,13 +2753,13 @@ impl Group { } +#[cfg(any(target_os = "linux", target_os = "android"))] #[cfg(test)] mod tests { use super::*; use std::{fs, thread, io}; /// Tests setting the filesystem UID with `setfsuid`. - #[cfg(any(target_os = "linux", target_os = "android"))] #[test] fn test_setfsuid() { use std::os::unix::fs::PermissionsExt;