From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6433 invoked by alias); 10 Aug 2015 12:51:00 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36045 Received: (qmail 5848 invoked from network); 10 Aug 2015 12:50:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f5-f794b6d000001495-82-55c89e2d64e5 Date: Mon, 10 Aug 2015 13:50:50 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Wait test failure Message-id: <20150810135050.7b8499e2@pwslap01u.europe.root.pri> In-reply-to: References: <20150808200521.4e3c85d1@ntlworld.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsVy+t/xK7q6806EGny7p2hxsPkhkwOjx6qD H5gCGKO4bFJSczLLUov07RK4MvY+38hesJez4t/0RvYGxtXsXYycHBICJhItT2dC2WISF+6t Z+ti5OIQEljKKNH28zNYQkhgBpPEwj3pEIltjBKfFh9kAkmwCKhK7H55nQ3EZhMwlJi6aTYj iC0iIC5xdu15FhBbWEBKomF2F9ggXgF7iWdtu5hBbE4BM4mL+84wQyyIk7i0+ytYL7+AvsTV v5+YIC6yl5h55QwjRK+gxI/J98BmMgtoSWze1sQKYctLbF7zFmqOusSNu7vZJzAKzULSMgtJ yywkLQsYmVcxiqaWJhcUJ6XnGukVJ+YWl+al6yXn525ihATt1x2MS49ZHWIU4GBU4uGdsfl4 qBBrYllxZe4hRgkOZiUR3qAZJ0KFeFMSK6tSi/Lji0pzUosPMUpzsCiJ887c9T5ESCA9sSQ1 OzW1ILUIJsvEwSnVwHiXQ65jwtuCqfuuHjpj4Zkz++Znx5P/lnsGcpau2L7pU0jKtMojcUZX PA5askysfHcvwmEq1+qz7YFTrs8N+r14r8QT23Xiz4J2vpugosITczVObOPivB2TvxUmv7re xKcbv+xHx7Q43etLfkxJbFBe0bDmieumt0v7jloxRfovydoleVDCrlBXiaU4I9FQi7moOBEA vYfJN1YCAAA= On Mon, 10 Aug 2015 07:12:41 +0000 Ismail Donmez 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