@@ -100,7 +100,7 @@ fn test_ptrace_cont() {
100
100
ptrace:: cont ( child, Some ( Signal :: SIGKILL ) ) . unwrap ( ) ;
101
101
match waitpid ( child, None ) {
102
102
Ok ( WaitStatus :: Signaled ( pid, Signal :: SIGKILL , _) ) if pid == child => {
103
- // FIXME It's been observed on some systems (apple) the
103
+ // FIXME It's been observed on some systems (apple) the
104
104
// tracee may not be killed but remain as a zombie process
105
105
// affecting other wait based tests. Add an extra kill just
106
106
// to make sure there are no zombies.
@@ -150,11 +150,11 @@ fn test_ptrace_syscall() {
150
150
// set this option to recognize syscall-stops
151
151
ptrace:: setoptions ( child, ptrace:: Options :: PTRACE_O_TRACESYSGOOD ) . unwrap ( ) ;
152
152
153
- #[ cfg( target_pointer_width = "64 " ) ]
154
- let get_syscall_id = || ptrace:: getregs ( child) . unwrap ( ) . orig_rax as i64 ;
153
+ #[ cfg( target_arch = "x86_64 " ) ]
154
+ let get_syscall_id = || ptrace:: getregs ( child) . unwrap ( ) . orig_rax as libc :: c_long ;
155
155
156
- #[ cfg( target_pointer_width = "32 " ) ]
157
- let get_syscall_id = || ptrace:: getregs ( child) . unwrap ( ) . orig_eax as i32 ;
156
+ #[ cfg( target_arch = "x86 " ) ]
157
+ let get_syscall_id = || ptrace:: getregs ( child) . unwrap ( ) . orig_eax as libc :: c_long ;
158
158
159
159
// kill entry
160
160
ptrace:: syscall ( child, None ) . unwrap ( ) ;
0 commit comments