X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F10-pure-perl.t;fp=t%2F10-pure-perl.t;h=2426afb95c482f782df8c50971c774e8a759c883;hb=726710b68a0754b5d5a7c9c5a054ace00bbdb22c;hp=e624c0c5e66184278c66f4f176d3962e6b65775f;hpb=006e9cb47357c9a0878feafbbb35df4f01cc0d09;p=p5sagit%2Fnamespace-clean.git diff --git a/t/10-pure-perl.t b/t/10-pure-perl.t index e624c0c..2426afb 100644 --- a/t/10-pure-perl.t +++ b/t/10-pure-perl.t @@ -39,21 +39,21 @@ ok( ; use Config; -use FindBin qw($Bin); use IPC::Open2 qw(open2); use File::Glob 'bsd_glob'; # for the $^X-es $ENV{PERL5LIB} = join ($Config{path_sep}, @INC); +$ENV{PATH} = ''; # rerun the tests under the assumption of pure-perl my $this_file = quotemeta(__FILE__); -for my $fn (bsd_glob("$Bin/*.t")) { +for my $fn ( bsd_glob("t/*.t") ) { next if $fn =~ /${this_file}$/; - my @cmd = ($^X, $fn); + my @cmd = map { $_ =~ /(.+)/ } ($^X, $fn); # this is cheating, and may even hang here and there (testing on windows passed fine) # if it does - will have to fix it somehow (really *REALLY* don't want to pull