X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F10_pure-perl.t;h=3246c03261bbf331b5f7026bd819d4df814c312d;hb=754056f2221e2d174895f3dc6967f6da695333a5;hp=83423915236bfe7e9572152f582bc385776719e5;hpb=c65b758feada06f763ef7f0eb7cbb0a09460671f;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/t/10_pure-perl.t b/t/10_pure-perl.t index 8342391..3246c03 100644 --- a/t/10_pure-perl.t +++ b/t/10_pure-perl.t @@ -3,7 +3,6 @@ use warnings; use FindBin qw($Bin); use Config; use IPC::Open2; -use File::Glob 'bsd_glob'; # support spaces in names unlike glob() # rerun the tests under the assumption of pure-perl @@ -13,11 +12,14 @@ $ENV{DEVEL_GLOBALDESTRUCTION_PP_TEST} = 1; my $this_file = quotemeta(__FILE__); -my @tests = grep { $_ !~ /${this_file}$/ } bsd_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"; @@ -36,4 +38,3 @@ for my $fn (@tests) { wait; ok (! $?, "Exit $? from: $^X $fn"); } -