On Mon Mar 10 02:21:21 2008, schwern@pobox.com wrote:
Show quoted text> Andreas Koenig via RT wrote:
> > I hope Schwern will tell us who'se blame it is. In any case I observe a
> > broken ExtUtils::Command test with Test::Simple 0.78. Downgrading to
> > 0.75 fixes it again.
> >
> > Schwern's recent posting to use.perl.org may be related.
> >
> > Schwern?
>
> The bug fix in Test::More fixed in 0.77 revealed a bug in
ExtUtils::Command.
Show quoted textIf you
Show quoted text> give it an argument it exits with 1. The test is now failing correctly.
>
Does this suggest the following patch to Shell::Command?
===================================================================
--- Command.pm (revision 10908)
+++ Command.pm (working copy)
@@ -6,7 +6,7 @@
# takes effect.
BEGIN {
*CORE::GLOBAL::exit = sub {
- CORE::exit(@_) unless caller eq 'ExtUtils::Command';
+ CORE::exit($_[0]) unless caller eq 'ExtUtils::Command';
my $exit = $_[0] || 0;
die "exit: $exit\n";
With this, the shell_exit test passes for both Test::Simple version 0.78
and earlier versions.