X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/335f57ae8601c57fbac3609967d5278924251b5b..2e8d2c13e8ac540de60673bd2f5d0122745acb6a:/regress/agent-ptrace.sh diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh index 7367d7af..4124f584 100644 --- a/regress/agent-ptrace.sh +++ b/regress/agent-ptrace.sh @@ -3,16 +3,16 @@ tid="disallow agent ptrace attach" -if [ -x `which uname 2>&1` ]; then +if [ -x "`which uname 2>&1`" ]; then case `uname` in - Linux|HP-UX|SunOS|NetBSD|AIX) - echo "skipped (not supported)" + Linux|HP-UX|SunOS|NetBSD|AIX|CYGWIN*) + echo "skipped (not supported on this platform)" exit 0 ;; esac fi -if [ ! -x `which gdb 2>&1` ]; then +if [ ! -x "`which gdb 2>&1`" ]; then echo "skipped (gdb not found)" exit 0 fi @@ -30,7 +30,7 @@ EOF if [ $? -ne 0 ]; then fail "gdb failed: exit code $?" fi - grep -q 'ptrace: Operation not permitted.' ${OBJ}/gdb.out + grep 'ptrace: Operation not permitted.' >/dev/null ${OBJ}/gdb.out r=$? rm -f ${OBJ}/gdb.out if [ $r -ne 0 ]; then