summaryrefslogtreecommitdiffstats
path: root/src/kash/tests/netbsd/waitjob
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/kash/tests/netbsd/waitjob8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kash/tests/netbsd/waitjob b/src/kash/tests/netbsd/waitjob
new file mode 100755
index 0000000..e2cc333
--- /dev/null
+++ b/src/kash/tests/netbsd/waitjob
@@ -0,0 +1,8 @@
+#!/bin/sh
+sleep 3 &
+sleep 1 &
+
+wait %1
+[ $? = 0 ] || echo fail1
+wait %2
+[ $? = 0 ] || echo fail2