zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Wait test failure
Date: Mon, 10 Aug 2015 13:50:50 +0100	[thread overview]
Message-ID: <20150810135050.7b8499e2@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <loom.20150810T091202-541@post.gmane.org>

On Mon, 10 Aug 2015 07:12:41 +0000
Ismail Donmez <ismail@donmez.ws> 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


  parent reply	other threads:[~2015-08-10 12:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-08 19:05 5.0.9 eventually...? Peter Stephenson
2015-08-08 20:40 ` Bart Schaefer
2015-08-08 20:50   ` Mikael Magnusson
2015-08-09  0:20     ` Bart Schaefer
2015-08-08 21:22 ` Oliver Kiddle
2015-08-09  0:23   ` Bart Schaefer
2015-08-09  0:24     ` Bart Schaefer
2015-08-09 14:45       ` Jun T.
2015-08-09 16:15         ` Completion after assignment as command (Re: 5.0.9 eventually...?) Peter Stephenson
2015-08-10  7:12 ` 5.0.9 eventually...? Ismail Donmez
2015-08-10  9:59   ` Ismail Donmez
2015-08-10 12:50   ` Peter Stephenson [this message]
2015-08-10 15:18     ` Wait test failure Peter Stephenson
2015-08-10 15:48       ` Peter Stephenson
2015-08-10 17:44         ` Bart Schaefer
2015-08-10 19:11           ` Peter Stephenson
2015-08-10 17:24   ` A05 test failure (was Re: 5.0.9 eventually...?) Bart Schaefer
2015-08-11  8:20     ` Ismail Donmez
2015-08-17 19:54 ` 5.0.9 eventually...? Peter Stephenson
2015-08-17 20:08   ` Bart Schaefer
2015-08-17 21:17   ` Mikael Magnusson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150810135050.7b8499e2@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).