Subject: | tests fail due to spaces in @INC (Devel::Cover::Inc issue) |
Hi,
I'm trying to install Devel-Cover 0.88 on my Windows box. Perl is
installed under c:\Program Filex (x86)\Perl (alas, controlled
environment) and the spaces in the path are causing problems:
- the spaces are also present in @INC
=> Devel::Cover::Inc is generated with something like
our @Inc = qw(c:\Program Filex (x86)\Perl\...)
=> I'm getting this:
Ignoring packages in:
.
C:/Program
Files
(x86)/Perl/lib
which is obviously non-sense
=> the tests fail because in the testing run, there are all these
standard modules that get tested (and the "got" report is much longer
than the "expected" one)
Proposed patch:
Left file: Devel-Cover\0.88\src\Makefile#1.PL
Right file: Devel-Cover\0.88\src\Makefile.PL
29a30
Show quoted text
> my $inc = join ",\n ", map { s/'/\\'/g; qq('$_'); } @inc;
51c52,54
< our \@Inc = qw( @inc );
---
Show quoted text> our \@Inc = (
> $inc);
>