diff --git a/test/sys/test_ptrace.rs b/test/sys/test_ptrace.rs index 01f676c996..0614c13fd2 100644 --- a/test/sys/test_ptrace.rs +++ b/test/sys/test_ptrace.rs @@ -1,13 +1,13 @@ use nix::Error; -use nix::errno::*; -use nix::unistd::*; +use nix::errno::Errno; +use nix::unistd::getpid; use nix::sys::ptrace; use std::{mem, ptr}; #[test] fn test_ptrace() { - use nix::sys::ptrace::ptrace::*; + use nix::sys::ptrace::ptrace::PTRACE_ATTACH; // Just make sure ptrace can be called at all, for now. // FIXME: qemu-user doesn't implement ptrace on all arches, so permit ENOSYS let err = ptrace::ptrace(PTRACE_ATTACH, getpid(), ptr::null_mut(), ptr::null_mut()).unwrap_err(); @@ -17,7 +17,7 @@ fn test_ptrace() { // Just make sure ptrace_setoptions can be called at all, for now. #[test] fn test_ptrace_setoptions() { - use nix::sys::ptrace::ptrace::*; // for PTRACE_O_TRACESYSGOOD + use nix::sys::ptrace::ptrace::PTRACE_O_TRACESYSGOOD; let err = ptrace::setoptions(getpid(), PTRACE_O_TRACESYSGOOD).unwrap_err(); assert!(err != Error::UnsupportedOperation); }