summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorMarcin Mielniczuk <marmistrz.dev@zoho.eu>2017-07-31 10:50:45 +0200
committerMarcin Mielniczuk <marmistrz.dev@zoho.eu>2017-07-31 10:50:45 +0200
commit0fbac87ba58eb57b5c7aa360a274a16daa8de3fc (patch)
treea629a26a573c5044aeab41396c1cada9590d57f9 /test/sys
parent843eeb008c3ba0476aa12f84ff4c01379a4d150c (diff)
downloadnix-0fbac87ba58eb57b5c7aa360a274a16daa8de3fc.zip
support delivering a signal with ptrace::cont
Diffstat (limited to 'test/sys')
-rw-r--r--test/sys/test_wait.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sys/test_wait.rs b/test/sys/test_wait.rs
index 4a7379c1..8eff5d58 100644
--- a/test/sys/test_wait.rs
+++ b/test/sys/test_wait.rs
@@ -67,10 +67,10 @@ mod ptrace {
assert!(ptrace::syscall(child).is_ok());
assert_eq!(waitpid(child, None), Ok(WaitStatus::PtraceSyscall(child)));
// Then get the ptrace event for the process exiting
- assert!(ptrace::cont(child).is_ok());
+ assert!(ptrace::cont(child, None).is_ok());
assert_eq!(waitpid(child, None), Ok(WaitStatus::PtraceEvent(child, SIGTRAP, PTRACE_EVENT_EXIT)));
// Finally get the normal wait() result, now that the process has exited
- assert!(ptrace::cont(child).is_ok());
+ assert!(ptrace::cont(child, None).is_ok());
assert_eq!(waitpid(child, None), Ok(WaitStatus::Exited(child, 0)));
}