summaryrefslogtreecommitdiff
path: root/test/test.rs
diff options
context:
space:
mode:
authorXavier L'Heureux <xavier.lheureux@icloud.com>2019-09-17 13:39:34 -0400
committerXavier L'Heureux <dev.xlheureux@gmail.com>2020-05-17 21:05:46 -0400
commit92e63f61cd5046547c30a812cda98d8a2c3b3361 (patch)
tree8274596822cad094600cdaddaa50a0a93a822956 /test/test.rs
parentf0912911a9843dea2f3f0755451346c9cea16f9b (diff)
downloadnix-92e63f61cd5046547c30a812cda98d8a2c3b3361.zip
Remove warnings when compiling for Redox
Diffstat (limited to 'test/test.rs')
-rw-r--r--test/test.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test.rs b/test/test.rs
index d48874fc..0bc8341d 100644
--- a/test/test.rs
+++ b/test/test.rs
@@ -3,7 +3,7 @@ extern crate bytes;
extern crate caps;
#[macro_use]
extern crate cfg_if;
-#[macro_use]
+#[cfg_attr(not(target_os = "redox"), macro_use)]
extern crate nix;
#[macro_use]
extern crate lazy_static;
@@ -58,6 +58,7 @@ macro_rules! skip_if_jailed {
}
}
+#[cfg(not(target_os = "redox"))]
macro_rules! skip_if_not_root {
($name:expr) => {
use nix::unistd::Uid;