summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Mielniczuk <marmistrz.dev@zoho.eu>2017-07-31 17:06:18 +0200
committerMarcin Mielniczuk <marmistrz.dev@zoho.eu>2017-07-31 17:06:18 +0200
commitcf3c2adf33f21622f4e5aff28d973fbe2de8aa86 (patch)
tree5ee637e10d506f35e3b0d9cd52c68a0b1dc7d6d0
parentc65b5baf251f59cea747a2eee66cdac4f2b177b4 (diff)
downloadnix-cf3c2adf33f21622f4e5aff28d973fbe2de8aa86.zip
Extra doc
-rw-r--r--test/sys/test_ptrace.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sys/test_ptrace.rs b/test/sys/test_ptrace.rs
index 02f9bf2d..924b462d 100644
--- a/test/sys/test_ptrace.rs
+++ b/test/sys/test_ptrace.rs
@@ -58,6 +58,7 @@ fn test_ptrace_cont() {
// FIXME: qemu-user doesn't implement ptrace on all arches and gives ENOSYS then.
// use it to filter out the affected platforms
+ // on valid platforms it will return Errno::EPERM
let err = ptrace::attach(getpid()).unwrap_err();
if err == Error::Sys(Errno::ENOSYS) {
return;