Skip to content

Commit

Permalink
Get rid of the bulk imports
Browse files Browse the repository at this point in the history
  • Loading branch information
marmistrz committed Jul 21, 2017
1 parent d5c4d0f commit 18b2bc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/sys/test_ptrace.rs
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -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);
}
Expand Down

0 comments on commit 18b2bc1

Please sign in to comment.