Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Wait test failure
On Mon, 10 Aug 2015 07:12:41 +0000
Ismail Donmez <ismail@xxxxxxxxx> wrote:
> latest git started to fail here on Linux x64:
>
> ./A05execution.ztst: starting.
> This test takes 5 seconds to fail...
> Test ./A05execution.ztst failed: bad status 2, expected 1 from:
> { unsetopt MONITOR } 2>/dev/null
> (exit 1) &
> one=$!
> (exit 2) &
> two=$!
> (exit 3) &
> three=$!
> wait $three
> print $?
> wait $two
> print $?
> wait $one
> Was testing: The status of recently exited background jobs is recorded
Not a fix, but this makes the failure clearer: it really is only that
last "wait" returning the wrong status, 2 instead of 1.
pws
diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst
index cc2d34d..d5501bb 100644
--- a/Test/A05execution.ztst
+++ b/Test/A05execution.ztst
@@ -266,9 +266,11 @@ F:anonymous function, and a descriptor leak when backgrounding a pipeline
wait $two
print $?
wait $one
-1:The status of recently exited background jobs is recorded
+ print $?
+0:The status of recently exited background jobs is recorded
>3
>2
+>1
# Regression test for workers/34060 (patch in 34065)
setopt ERR_EXIT NULL_GLOB
Messages sorted by:
Reverse Date,
Date,
Thread,
Author