summaryrefslogtreecommitdiff
path: root/test/test_mount.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_mount.rs')
-rw-r--r--test/test_mount.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_mount.rs b/test/test_mount.rs
index 74d2938c..7ddbce9f 100644
--- a/test/test_mount.rs
+++ b/test/test_mount.rs
@@ -15,7 +15,7 @@ mod test_mount {
use std::os::unix::fs::PermissionsExt;
use std::process::{self, Command};
- use libc::{self, EACCES, EROFS};
+ use libc::{EACCES, EROFS};
use nix::mount::{mount, umount, MsFlags, MS_BIND, MS_RDONLY, MS_NOEXEC};
use nix::sched::{unshare, CLONE_NEWNS, CLONE_NEWUSER};
@@ -179,8 +179,8 @@ exit 23";
let mut handle = stderr.lock();
writeln!(handle,
"unshare failed: {}. Are unprivileged user namespaces available?",
- e);
- writeln!(handle, "mount is not being tested");
+ e).unwrap();
+ writeln!(handle, "mount is not being tested").unwrap();
// Exit with success because not all systems support unprivileged user namespaces, and
// that's not what we're testing for.
process::exit(0);