From: Peter Rabbitson Date: Wed, 13 Jun 2012 22:54:42 +0000 (+0200) Subject: Make sure we work from space-containing paths X-Git-Tag: Devel-GlobalDestruction-0.06~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c65b758feada06f763ef7f0eb7cbb0a09460671f;hp=6e3fd33ea09a28ac3d9e0d47253cfd834060cde1;p=p5sagit%2FDevel-GlobalDestruction.git Make sure we work from space-containing paths --- diff --git a/Changes b/Changes index a6bed13..068290f 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,5 @@ * De-retardize XS-less behavior under SpeedyCGI + * Test suite now works from within space-containing paths 0.05 Thu, 26 Apr 2012 * Pure-perl implementation for situations where neither ${^GLOBAL_PHASE} nor diff --git a/t/10_pure-perl.t b/t/10_pure-perl.t index 841073a..8342391 100644 --- a/t/10_pure-perl.t +++ b/t/10_pure-perl.t @@ -3,6 +3,7 @@ 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 @@ -12,7 +13,7 @@ $ENV{DEVEL_GLOBALDESTRUCTION_PP_TEST} = 1; my $this_file = quotemeta(__FILE__); -my @tests = grep { $_ !~ /${this_file}$/ } glob("$Bin/*.t"); +my @tests = grep { $_ !~ /${this_file}$/ } bsd_glob("$Bin/*.t"); print "1..@{[ scalar @tests ]}\n"; sub ok ($$) {