From: Frank Lichtenheld <frank@lichtenheld.de>
To: Brian Gernhardt <benji@silverinsanity.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: git-cvsserver test failures (still)
Date: Thu, 4 Oct 2007 03:19:54 +0200 [thread overview]
Message-ID: <20071004011954.GK18024@planck.djpig.de> (raw)
In-Reply-To: <A78B5F62-4FCC-4650-9B0D-0F64FEDB8423@silverinsanity.com>
Hi.
Some investigations on this:
On Wed, Oct 03, 2007 at 03:50:18PM -0400, Brian Gernhardt wrote:
> This appears to be from git-cvsserver.perl:148-9:
>
> req_Root('root', $line) # reuse Root
> or die "E Invalid root $line \n";
>
> This fails the test suite because die() exits with code 255 (checked
> with "perl -e 'die'; echo $?"), which is outside what
> test_expect_failure accepts (see t/test-lib.sh:179).
>
> My questions become:
> 1) Why hasn't this hit anyone else?
die doesn't always quit with 255:
"exits with the current value of $! (errno). If $! is 0, exits with the
value of "($? >> 8)" (backtick ‘command‘ status). If "($? >> 8)" is 0,
exits with 255"
On my system $! is 9 for these cases and so it exits with exit code 9.
> 2) Is this where these tests are supposed to fail?
yes, IIRC
> 3) If it is, should the code be using print and exit 1 instead of die?
I think that would be the best solution, yes.
> 4) If not, should the test be altered to end with "|| false" or
> similar so the test passes?
Gruesse,
--
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/
next prev parent reply other threads:[~2007-10-04 1:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-03 19:50 git-cvsserver test failures (still) Brian Gernhardt
2007-10-04 1:19 ` Frank Lichtenheld [this message]
2007-10-04 1:43 ` [PATCH] Use exit 1 instead of die when req_Root fails Brian Gernhardt
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=20071004011954.GK18024@planck.djpig.de \
--to=frank@lichtenheld.de \
--cc=benji@silverinsanity.com \
--cc=git@vger.kernel.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.
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).