diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-09-04 13:55:25 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-09-04 13:55:25 +1000 |
commit | 5569759bce2f3660ef314d58a08652e05222d580 (patch) | |
tree | 008eeb45ea50696e827c371ab6a885e7b02d0c7b /regress/agent-ptrace.sh | |
parent | 2297ac41ca1c39558484f05a3c298b358f77c528 (diff) |
- [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 @@ | |||
3 | 3 | ||
4 | tid="disallow agent ptrace attach" | 4 | tid="disallow agent ptrace attach" |
5 | 5 | ||
6 | if [ -x `which uname 2>&1` ]; then | ||
7 | case `uname` in | ||
8 | Linux|HP-UX|SunOS|NetBSD|AIX) | ||
9 | echo "skipped (not supported)" | ||
10 | exit 0 | ||
11 | ;; | ||
12 | esac | ||
13 | fi | ||
14 | |||
15 | if [ ! -x `which gdb 2>&1` ]; then | ||
16 | echo "skipped (gdb not found)" | ||
17 | exit 0 | ||
18 | fi | ||
19 | |||
6 | trace "start agent" | 20 | trace "start agent" |
7 | eval `${SSHAGENT} -s` > /dev/null | 21 | eval `${SSHAGENT} -s` > /dev/null |
8 | r=$? | 22 | r=$? |