X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F10_pure-perl.t;h=3246c03261bbf331b5f7026bd819d4df814c312d;hb=962e36b8870b4e27601bb787624672ce782cceef;hp=841073ac242408d8e91589f7d04658d3cf728345;hpb=9aaf36461a79c118c35f3bf546933fefbd9bfd35;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/t/10_pure-perl.t b/t/10_pure-perl.t index 841073a..3246c03 100644 --- a/t/10_pure-perl.t +++ b/t/10_pure-perl.t @@ -12,11 +12,14 @@ $ENV{DEVEL_GLOBALDESTRUCTION_PP_TEST} = 1; my $this_file = quotemeta(__FILE__); -my @tests = grep { $_ !~ /${this_file}$/ } glob("$Bin/*.t"); +opendir(my $dh, $Bin); +my @tests = grep { $_ !~ /${this_file}$/ } map { "$Bin/$_" } grep { /\.t$/ } readdir $dh; 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"; @@ -35,4 +38,3 @@ for my $fn (@tests) { wait; ok (! $?, "Exit $? from: $^X $fn"); } -