aboutsummaryrefslogtreecommitdiff
path: root/tests/exec2.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exec2.test')
-rw-r--r--tests/exec2.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/exec2.test b/tests/exec2.test
index b1af8ab..b1d0263 100644
--- a/tests/exec2.test
+++ b/tests/exec2.test
@@ -171,4 +171,11 @@ test exec2-5.5 {wait for all children} -constraints {after jim} -body {
wait
} -result {}
+test exec2-5.6 {wait -1 to wait for any child} -constraints {after jim nomingw32} -body {
+ set pid [exec sleep 0.1 &]
+ # Now wait for any child
+ lassign [wait -1] status waitpid code
+ list $status $($waitpid == $pid) $code
+} -result {CHILDSTATUS 1 0}
+
testreport