diff options
author | xd009642 <danielmckenna93@gmail.com> | 2017-08-12 16:49:08 +0100 |
---|---|---|
committer | xd009642 <danielmckenna93@gmail.com> | 2017-08-28 10:35:55 +0100 |
commit | 33249db1c0f20491947c92e092961171a7bd4f68 (patch) | |
tree | 9b0eee9a4b3cf8323480b8c12a1705b43555289f /test/sys/test_ptrace.rs | |
parent | b569cfc1e9bb3b665fb0d4c4fe1084bfa3feb6ba (diff) | |
download | nix-33249db1c0f20491947c92e092961171a7bd4f68.zip |
Moved ptrace constants into enum types added minor functionality.
Used the libc_enum! macro to create enums for the ptrace event, request, and libc_bitflags for options constants defined in libc.
Also, replicated functionality to move from c_int to PtraceEvent enum in PR #728 as it appears to be abandoned.
Added utility function for detaching from tracee. Updated names and removed ptrace::ptrace namespace
Diffstat (limited to 'test/sys/test_ptrace.rs')
-rw-r--r-- | test/sys/test_ptrace.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/sys/test_ptrace.rs b/test/sys/test_ptrace.rs index 16b24110..20cde1aa 100644 --- a/test/sys/test_ptrace.rs +++ b/test/sys/test_ptrace.rs @@ -16,8 +16,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::PTRACE_O_TRACESYSGOOD; - let err = ptrace::setoptions(getpid(), PTRACE_O_TRACESYSGOOD).unwrap_err(); + let err = ptrace::setoptions(getpid(), ptrace::PTRACE_O_TRACESYSGOOD).unwrap_err(); assert!(err != Error::UnsupportedOperation); } |