Fix test-ptrace in automated mode

Tested via:
./test-ptrace
./test-ptrace -v /bin/ls /usr
1 file changed