diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-09-04 05:55:25 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-09-04 05:55:25 +0200 |
commit | 5569759bce2f3660ef314d58a08652e05222d580 (patch) | |
tree | 008eeb45ea50696e827c371ab6a885e7b02d0c7b /regress/agent-ptrace.sh | |
parent | - [regress/agent-getpeereid.sh] Skip test on platforms that don't support (diff) | |
download | openssh-5569759bce2f3660ef314d58a08652e05222d580.tar.xz openssh-5569759bce2f3660ef314d58a08652e05222d580.zip |
- [regress/agent-ptrace.sh] Skip tests if platform doesn't support it or
gdb cannot be found.
Diffstat (limited to 'regress/agent-ptrace.sh')
-rw-r--r-- | regress/agent-ptrace.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh index 9f9c99960..7367d7aff 100644 --- a/regress/agent-ptrace.sh +++ b/regress/agent-ptrace.sh @@ -3,6 +3,20 @@ tid="disallow agent ptrace attach" +if [ -x `which uname 2>&1` ]; then + case `uname` in + Linux|HP-UX|SunOS|NetBSD|AIX) + echo "skipped (not supported)" + exit 0 + ;; + esac +fi + +if [ ! -x `which gdb 2>&1` ]; then + echo "skipped (gdb not found)" + exit 0 +fi + trace "start agent" eval `${SSHAGENT} -s` > /dev/null r=$? |