From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14741 invoked from network); 25 Dec 2007 01:36:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Dec 2007 01:36:23 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 24864 invoked from network); 25 Dec 2007 01:36:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Dec 2007 01:36:18 -0000 Received: (qmail 29388 invoked by alias); 25 Dec 2007 01:36:15 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24316 Received: (qmail 29376 invoked from network); 25 Dec 2007 01:36:14 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Dec 2007 01:36:14 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id 4F1C88058F9A for ; Tue, 25 Dec 2007 02:32:35 +0100 (CET) Received: from acolyte.scowler.net (acolyte.scowler.net [216.254.112.45]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Tue, 25 Dec 2007 02:32:34 +0100 (CET) Received: by acolyte.scowler.net (Postfix, from userid 1000) id 3FE845CFA3; Mon, 24 Dec 2007 20:36:09 -0500 (EST) Date: Mon, 24 Dec 2007 20:36:10 -0500 From: Clint Adams To: zsh-workers@sunsite.dk Subject: Re: other testsuite problems Message-ID: <20071225013610.GA14334@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk References: <20071224222325.GA32354@scowler.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071224222325.GA32354@scowler.net> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: ClamAV using ClamSMTP On Mon, Dec 24, 2007 at 05:23:25PM -0500, Clint Adams wrote: > Finally, if D07multibyte.ztst is skipped due to a lack of UTF-8 locale, it seems as though that is > being registered as a failure. Perhaps a distinct exit code should be used for skips (and counting > such in runtests.zsh). To that end, Index: Test/runtests.zsh =================================================================== RCS file: /cvsroot/zsh/zsh/Test/runtests.zsh,v retrieving revision 1.1 diff -u -r1.1 runtests.zsh --- Test/runtests.zsh 18 Dec 2007 21:16:30 -0000 1.1 +++ Test/runtests.zsh 25 Dec 2007 01:35:00 -0000 @@ -7,10 +7,13 @@ # protect from catastrophic failure of an individual test. # We could probably do that with subshells instead. -integer success failure +integer success failure skipped retval for file in "${(f)ZTST_testlist}"; do $ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh $file - if (( $? )); then + retval=$? + if (( $retval == 2 )); then + (( skipped++ )) + elif (( $retval )); then (( failure++ )) else (( success++ )) @@ -18,6 +21,7 @@ done print "************************************** $success successful test script${${success:#1}:+s}, \ -$failure failure${${failure:#1}:+s} +$failure failure${${failure:#1}:+s}, \ +$skipped skipped **************************************" return $(( failure ? 1 : 0 )) Index: Test/ztst.zsh =================================================================== RCS file: /cvsroot/zsh/zsh/Test/ztst.zsh,v retrieving revision 1.28 diff -u -r1.28 ztst.zsh --- Test/ztst.zsh 18 Dec 2007 21:16:30 -0000 1.28 +++ Test/ztst.zsh 25 Dec 2007 01:35:00 -0000 @@ -467,6 +467,7 @@ if [[ -n "$ZTST_unimplemented" ]]; then print "$ZTST_testname: skipped ($ZTST_unimplemented)" + ZTST_testfailed=2 elif (( ! $ZTST_testfailed )); then print "$ZTST_testname: all tests successful." fi