summaryrefslogtreecommitdiffabout
path: root/tests/aux/sleepexit
Side-by-side diff
Diffstat (limited to 'tests/aux/sleepexit') (more/less context) (ignore whitespace changes)
-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
--- a/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.