diff options
Diffstat (limited to 'regress')
-rw-r--r-- | regress/multiplex.sh | 6 | ||||
-rw-r--r-- | regress/reexec.sh | 6 | ||||
-rw-r--r-- | regress/test-exec.sh | 9 |
3 files changed, 10 insertions, 11 deletions
diff --git a/regress/multiplex.sh b/regress/multiplex.sh index e8cc1ac53..a172e5790 100644 --- a/regress/multiplex.sh +++ b/regress/multiplex.sh | |||
@@ -1,7 +1,7 @@ | |||
1 | # $OpenBSD: multiplex.sh,v 1.10 2005/02/27 11:33:30 dtucker Exp $ | 1 | # $OpenBSD: multiplex.sh,v 1.10 2005/02/27 11:33:30 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | CTL=$OBJ/ctl-sock | 4 | CTL=/tmp/openssh.regress.ctl-sock.$$ |
5 | 5 | ||
6 | tid="connection multiplexing" | 6 | tid="connection multiplexing" |
7 | 7 | ||
@@ -89,6 +89,4 @@ ${SSH} -S $CTL -Oexit otherhost || fail "send exit command failed" | |||
89 | # Wait for master to exit | 89 | # Wait for master to exit |
90 | sleep 2 | 90 | sleep 2 |
91 | 91 | ||
92 | ps -p $MASTER_PID >/dev/null && fail "exit command failed" | 92 | kill -0 $MASTER_PID >/dev/null 2>&1 && fail "exit command failed" |
93 | |||
94 | cleanup | ||
diff --git a/regress/reexec.sh b/regress/reexec.sh index d69b8c577..4f824a31d 100644 --- a/regress/reexec.sh +++ b/regress/reexec.sh | |||
@@ -3,10 +3,10 @@ | |||
3 | 3 | ||
4 | tid="reexec tests" | 4 | tid="reexec tests" |
5 | 5 | ||
6 | DATA=/bin/ls | 6 | DATA=/bin/ls${EXEEXT} |
7 | COPY=${OBJ}/copy | 7 | COPY=${OBJ}/copy |
8 | SSHD_ORIG=$SSHD | 8 | SSHD_ORIG=$SSHD${EXEEXT} |
9 | SSHD_COPY=$OBJ/sshd | 9 | SSHD_COPY=$OBJ/sshd${EXEEXT} |
10 | 10 | ||
11 | # Start a sshd and then delete it | 11 | # Start a sshd and then delete it |
12 | start_sshd_copy () | 12 | start_sshd_copy () |
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 4e53449be..4b3a70eb3 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh | |||
@@ -96,9 +96,10 @@ if [ "x$TEST_SSH_SCP" != "x" ]; then | |||
96 | fi | 96 | fi |
97 | 97 | ||
98 | # Path to sshd must be absolute for rexec | 98 | # Path to sshd must be absolute for rexec |
99 | if [ ! -x /$SSHD ]; then | 99 | case "$SSHD" in |
100 | SSHD=`which sshd` | 100 | /*) ;; |
101 | fi | 101 | *) SSHD=`which sshd` ;; |
102 | esac | ||
102 | 103 | ||
103 | if [ "x$TEST_SSH_LOGFILE" = "x" ]; then | 104 | if [ "x$TEST_SSH_LOGFILE" = "x" ]; then |
104 | TEST_SSH_LOGFILE=/dev/null | 105 | TEST_SSH_LOGFILE=/dev/null |
@@ -197,7 +198,7 @@ cat << EOF > $OBJ/sshd_config | |||
197 | #ListenAddress ::1 | 198 | #ListenAddress ::1 |
198 | PidFile $PIDFILE | 199 | PidFile $PIDFILE |
199 | AuthorizedKeysFile $OBJ/authorized_keys_%u | 200 | AuthorizedKeysFile $OBJ/authorized_keys_%u |
200 | LogLevel DEBUG | 201 | LogLevel VERBOSE |
201 | AcceptEnv _XXX_TEST_* | 202 | AcceptEnv _XXX_TEST_* |
202 | AcceptEnv _XXX_TEST | 203 | AcceptEnv _XXX_TEST |
203 | Subsystem sftp $SFTPSERVER | 204 | Subsystem sftp $SFTPSERVER |