- (dtucker) [regress/reexec.sh regress/sftp-cmds.sh regress/test-exec.sh]

Move cygwin detection to test-exec and use to skip reexec test on cygwin.
This commit is contained in:
Darren Tucker 2012-07-03 01:06:49 +10:00
parent 369ceedce2
commit ec1e15d51a
4 changed files with 13 additions and 15 deletions

View File

@ -19,6 +19,8 @@
- dtucker@cvs.openbsd.org 2012/07/02 14:37:06
[regress/connect-privsep.sh]
remove exit from end of test since it prevents reporting failure
- (dtucker) [regress/reexec.sh regress/sftp-cmds.sh regress/test-exec.sh]
Move cygwin detection to test-exec and use to skip reexec test on cygwin.
20120629
- OpenBSD CVS Sync

View File

@ -46,6 +46,9 @@ rm -f $PIDFILE
cp $OBJ/sshd_config.orig $OBJ/sshd_config
# cygwin can't fork a deleted binary
if [ "$os" != "cygwin" ]; then
verbose "test reexec fallback"
start_sshd_copy
@ -69,4 +72,4 @@ copy_tests
$SUDO kill `$SUDO cat $PIDFILE`
rm -f $PIDFILE
fi

View File

@ -17,20 +17,6 @@ do
fi
done
if have_prog uname
then
case `uname` in
CYGWIN*)
os=cygwin
;;
*)
os=`uname`
;;
esac
else
os="unknown"
fi
# Path with embedded quote
QUOTECOPY=${COPY}".\"blah\""
QUOTECOPY_ARG=${COPY}'.\"blah\"'

View File

@ -12,6 +12,13 @@ OSF1*)
BIN_SH=xpg4
export BIN_SH
;;
CYGWIN_5.0)
os=cygwin
TEST_SSH_IPV6=no
;;
CYGWIN*)
os=cygwin
;;
esac
if [ ! -z "$TEST_SSH_PORT" ]; then