diff options
author | Darren Tucker <dtucker@zip.com.au> | 2012-07-03 01:06:49 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2012-07-03 01:06:49 +1000 |
commit | ec1e15d51a202c95a6414375ae71c461a16ff870 (patch) | |
tree | 298f3072383bb517dfb52a79313e0cd8610b1355 /regress | |
parent | 369ceedce24474f50a7934e4ff8515cdc312b268 (diff) |
- (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.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/reexec.sh | 5 | ||||
-rw-r--r-- | regress/sftp-cmds.sh | 14 | ||||
-rw-r--r-- | regress/test-exec.sh | 7 |
3 files changed, 11 insertions, 15 deletions
diff --git a/regress/reexec.sh b/regress/reexec.sh index 6edfc318e..9464eb699 100644 --- a/regress/reexec.sh +++ b/regress/reexec.sh | |||
@@ -46,6 +46,9 @@ rm -f $PIDFILE | |||
46 | 46 | ||
47 | cp $OBJ/sshd_config.orig $OBJ/sshd_config | 47 | cp $OBJ/sshd_config.orig $OBJ/sshd_config |
48 | 48 | ||
49 | # cygwin can't fork a deleted binary | ||
50 | if [ "$os" != "cygwin" ]; then | ||
51 | |||
49 | verbose "test reexec fallback" | 52 | verbose "test reexec fallback" |
50 | 53 | ||
51 | start_sshd_copy | 54 | start_sshd_copy |
@@ -69,4 +72,4 @@ copy_tests | |||
69 | $SUDO kill `$SUDO cat $PIDFILE` | 72 | $SUDO kill `$SUDO cat $PIDFILE` |
70 | rm -f $PIDFILE | 73 | rm -f $PIDFILE |
71 | 74 | ||
72 | 75 | fi | |
diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh index d10d01a31..2e0300e16 100644 --- a/regress/sftp-cmds.sh +++ b/regress/sftp-cmds.sh | |||
@@ -17,20 +17,6 @@ do | |||
17 | fi | 17 | fi |
18 | done | 18 | done |
19 | 19 | ||
20 | if have_prog uname | ||
21 | then | ||
22 | case `uname` in | ||
23 | CYGWIN*) | ||
24 | os=cygwin | ||
25 | ;; | ||
26 | *) | ||
27 | os=`uname` | ||
28 | ;; | ||
29 | esac | ||
30 | else | ||
31 | os="unknown" | ||
32 | fi | ||
33 | |||
34 | # Path with embedded quote | 20 | # Path with embedded quote |
35 | QUOTECOPY=${COPY}".\"blah\"" | 21 | QUOTECOPY=${COPY}".\"blah\"" |
36 | QUOTECOPY_ARG=${COPY}'.\"blah\"' | 22 | QUOTECOPY_ARG=${COPY}'.\"blah\"' |
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 092cfed5b..514fffb16 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh | |||
@@ -12,6 +12,13 @@ OSF1*) | |||
12 | BIN_SH=xpg4 | 12 | BIN_SH=xpg4 |
13 | export BIN_SH | 13 | export BIN_SH |
14 | ;; | 14 | ;; |
15 | CYGWIN_5.0) | ||
16 | os=cygwin | ||
17 | TEST_SSH_IPV6=no | ||
18 | ;; | ||
19 | CYGWIN*) | ||
20 | os=cygwin | ||
21 | ;; | ||
15 | esac | 22 | esac |
16 | 23 | ||
17 | if [ ! -z "$TEST_SSH_PORT" ]; then | 24 | if [ ! -z "$TEST_SSH_PORT" ]; then |