Dominique Quatravaux wrote:
> Christopher H. Laco a wrote:
>> Dear Dominique Quatravaux,
> 
>> This is a computer-generated report for Test-Group-0.07
>> on perl-5.8.8, created automatically by CPAN-Reporter-1.04
>> and sent to the CPAN Testers mailing list. 
> 
>> [...]
>> t/10-external.............
>> #   Failed test at t/10-external.t line 208.
>> #                   '1..2
>> # '
>> #     doesn't match '(?m-xis:^not ok 1.*\*died\*)'
> 
> Sorry I don't do Windows and I have no idea of what's going on here.
> How can I proceed from there? Is it possible for you to offer some
> kind of remote access?
> 
> Thanks in advance,
> 

Lucky for you, this fails on my current perl as well (Strawberry Perl).

Ok, so I've extracted the dist in the following directory:

> C:\Test-Group-0.07\

I'm running one of the failing tests:

> cls && prove -l t/10-external.t

From what I can follow, in 10-external.t, line 194, you're doing this:

> my $logfile = $perl->workpath("log");

which on this perl, on this (and apparently my other failing machines)
creates this file:

> C:\Test-Group-0.07\DOCUME~1CLACO~1.OPEocals~1temp~testcmd3076-1og

which according to the Test::Cmd::workpath pod, seems to be vastly
incorrect, due to something not handling the Cmd shell/long file names
properly. Then of course, during the failing test, you're calling read:

> $perl->read(\$contents, 'log');
> like($contents, qr/group 1.*died/, "log file 1/2");

which defaults to reading from workdir(), but of course, there's no log
file in there because of the previous problem with workpath, returning
an empty $contents, which then fails the regex with the error from the
report:

> t/10-external.............Use of uninitialized value in pattern match (m//) 
> at t/10-external.t line 213.
> 
> #   Failed test 'log file 1/2'
> #   at t/10-external.t line 213.
> #                   undef
> #     doesn't match '(?-xism:group 1.*died)'
> Use of uninitialized value in pattern match (m//) at t/10-external.t line 215.

That's what I know. :-)
Now whether this test is wrong, or it's really Test::Cmd that is bogus
here, I'm not sure.

-=Chris

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to