diff options
author | Xavier L'Heureux <xavier.lheureux@icloud.com> | 2019-09-17 13:39:34 -0400 |
---|---|---|
committer | Xavier L'Heureux <dev.xlheureux@gmail.com> | 2020-05-17 21:05:46 -0400 |
commit | 92e63f61cd5046547c30a812cda98d8a2c3b3361 (patch) | |
tree | 8274596822cad094600cdaddaa50a0a93a822956 /test/sys | |
parent | f0912911a9843dea2f3f0755451346c9cea16f9b (diff) | |
download | nix-92e63f61cd5046547c30a812cda98d8a2c3b3361.zip |
Remove warnings when compiling for Redox
Diffstat (limited to 'test/sys')
-rw-r--r-- | test/sys/test_signal.rs | 1 | ||||
-rw-r--r-- | test/sys/test_uio.rs | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/sys/test_signal.rs b/test/sys/test_signal.rs index 8c1ced3c..1c3a25f8 100644 --- a/test/sys/test_signal.rs +++ b/test/sys/test_signal.rs @@ -1,4 +1,5 @@ use libc; +#[cfg(not(target_os = "redox"))] use nix::Error; use nix::sys::signal::*; use nix::unistd::*; diff --git a/test/sys/test_uio.rs b/test/sys/test_uio.rs index 7601e02f..d0025b87 100644 --- a/test/sys/test_uio.rs +++ b/test/sys/test_uio.rs @@ -6,7 +6,9 @@ use std::{cmp, iter}; use std::fs::{OpenOptions}; use std::os::unix::io::AsRawFd; -use tempfile::{tempfile, tempdir}; +#[cfg(not(target_os = "redox"))] +use tempfile::tempfile; +use tempfile::tempdir; #[test] fn test_writev() { |