summaryrefslogtreecommitdiff
path: root/tests/jobs5.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/jobs5.sub')
-rw-r--r--tests/jobs5.sub12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/jobs5.sub b/tests/jobs5.sub
new file mode 100644
index 00000000..35d39816
--- /dev/null
+++ b/tests/jobs5.sub
@@ -0,0 +1,12 @@
+# framework to test new `wait -n' option that waits for any job to finish
+
+set -m
+
+sleep 20 &
+{ sleep 5; exit 12; } &
+sleep 20 &
+
+wait -n
+echo $?
+
+jobs