X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F10_pure-perl.t;h=47bfbc211e655f0ea7467ee452895b258dc78c3d;hb=6d3e0a6f;hp=83423915236bfe7e9572152f582bc385776719e5;hpb=19a66cb4bd2afb3036d4ad05c6e30713023bc107;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/t/10_pure-perl.t b/t/10_pure-perl.t index 8342391..47bfbc2 100644 --- a/t/10_pure-perl.t +++ b/t/10_pure-perl.t @@ -16,8 +16,10 @@ my $this_file = quotemeta(__FILE__); my @tests = grep { $_ !~ /${this_file}$/ } bsd_glob("$Bin/*.t"); print "1..@{[ scalar @tests ]}\n"; +my $had_error = 0; +END { $? = $had_error } sub ok ($$) { - print "not " if !$_[0]; + $had_error++, print "not " if !$_[0]; print "ok"; print " - $_[1]" if defined $_[1]; print "\n"; @@ -36,4 +38,3 @@ for my $fn (@tests) { wait; ok (! $?, "Exit $? from: $^X $fn"); } -