Skip to content

Commit

Permalink
move conditional compilation attribute to include the whole test module
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Conte committed Jan 28, 2020
1 parent c14ecd0 commit 5ad17f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unistd.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 5ad17f3

Please sign in to comment.