diff options
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r-- | regress/test-exec.sh | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index e626dd78a..70250acd7 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: test-exec.sh,v 1.22 2004/06/24 19:32:00 djm Exp $ | 1 | # $OpenBSD: test-exec.sh,v 1.23 2004/06/25 01:25:12 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | #SUDO=sudo | 4 | #SUDO=sudo |
@@ -268,27 +268,6 @@ start_sshd () | |||
268 | test -f $PIDFILE || fatal "no sshd running on port $PORT" | 268 | test -f $PIDFILE || fatal "no sshd running on port $PORT" |
269 | } | 269 | } |
270 | 270 | ||
271 | # Start a sshd and then delete it | ||
272 | start_sshd_copy_zap () | ||
273 | { | ||
274 | cp ${SSHD} $OBJ/sshd.copy | ||
275 | SSHD_CPY=`which $OBJ/sshd.copy` | ||
276 | |||
277 | # start sshd | ||
278 | $SUDO $SSHD_CPY -f $OBJ/sshd_config -t || fatal "sshd_config broken" | ||
279 | $SUDO $SSHD_CPY -f $OBJ/sshd_config | ||
280 | |||
281 | trace "wait for sshd" | ||
282 | i=0; | ||
283 | while [ ! -f $PIDFILE -a $i -lt 5 ]; do | ||
284 | i=`expr $i + 1` | ||
285 | sleep $i | ||
286 | done | ||
287 | |||
288 | test -f $PIDFILE || fatal "no sshd running on port $PORT" | ||
289 | rm -f $OBJ/sshd.copy | ||
290 | } | ||
291 | |||
292 | # source test body | 271 | # source test body |
293 | . $SCRIPT | 272 | . $SCRIPT |
294 | 273 | ||