summaryrefslogtreecommitdiff
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index bfa48803b..13a8e18f3 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -317,6 +317,14 @@ stop_sshd ()
317 fi 317 fi
318} 318}
319 319
320TMP=
321
322make_tmpdir ()
323{
324 TMP="$($OBJ/mkdtemp openssh-regress-XXXXXXXXXXXX)" || \
325 fatal "failed to create temporary directory"
326}
327
320# helper 328# helper
321cleanup () 329cleanup ()
322{ 330{
@@ -327,6 +335,9 @@ cleanup ()
327 kill $SSH_PID 335 kill $SSH_PID
328 fi 336 fi
329 fi 337 fi
338 if [ "x$TMP" != "x" ]; then
339 rm -rf "$TMP"
340 fi
330 stop_sshd 341 stop_sshd
331} 342}
332 343