aboutsummaryrefslogtreecommitdiff
path: root/tests/aux/sleepexit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aux/sleepexit')
-rwxr-xr-xtests/aux/sleepexit8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/aux/sleepexit b/tests/aux/sleepexit
new file mode 100755
index 0000000..25a9a5b
--- /dev/null
+++ b/tests/aux/sleepexit
@@ -0,0 +1,8 @@
+#! /bin/sh
+t=${1:?}
+c=${2:?}
+if test -n "$3"; then
+ echo $$ > $3
+fi
+sleep $t
+exit $c

Return to:

Send suggestions and report system problems to the System administrator.