]> andersk Git - openssh.git/commitdiff
- [regress/agent-ptrace.sh] Skip tests if platform doesn't support it or
authordtucker <dtucker>
Thu, 4 Sep 2003 03:55:25 +0000 (03:55 +0000)
committerdtucker <dtucker>
Thu, 4 Sep 2003 03:55:25 +0000 (03:55 +0000)
     gdb cannot be found.

ChangeLog
regress/agent-ptrace.sh

index bb10cfbdeda582f05fc32eaa1f50f6a836e5683d..b9d6c8c99b7cce6310105ae11b0a9e059e7fb57a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
    - [Makefile.in] Add "make tests" target and "make clean" hooks.
    - [regress/agent-getpeereid.sh] Skip test on platforms that don't support
      getpeereid.
+   - [regress/agent-ptrace.sh] Skip tests if platform doesn't support it or
+     gdb cannot be found.
 
 20030903
  - (djm) OpenBSD CVS Sync
index 9f9c99960ca602677f4caacf3371c54238d46b1b..7367d7aff52aaa4f26330144ab2e82f58469eacd 100644 (file)
@@ -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=$?
This page took 0.176143 seconds and 5 git commands to generate.