Thanks.  It looks like a fairly subtle bug from an interaction with
Test::Harness.  CPAN::Reporter sets PERL5OPT by appending "
-MDevel::Autoflush".  Test::Harness then adds that to the @switches
array it passes to the command line.  If there is no prior PERL5OPT,
the leading space causes perl to interpret it as a program to execute
instead of a command line switch.  Eliminating the leading space seems
to fix the problem.

Andy A -- you might want to have Test::Harness chomp leading spaces on
PERL5OPT just to be safe.

David

On Thu, Jun 5, 2008 at 12:24 AM, Andreas J. Koenig
<[EMAIL PROTECTED]> wrote:
> The first test I ran immediately after installing 1.15_52 was a FAIL.
> Retrying same test without CPAN::Reporter was a PASS. I suspect
> CPAN::Reporter 1.15_52 is broken. The module was GameClock and this is
> the output:
>
>  CPAN.pm: Going to build C/CH/CHESSKIT/Chess-GameClock-GameClock-1.0.tar.gz
>
> CPAN: CPAN::Reporter loaded ok (v1.1552)
> Checking whether your kit is complete...
> Looks good
>
> Checking prerequisites...
> Looks good
>
> Creating new 'Build' script for 'Chess-GameClock-GameClock' version '1.0'
> (/usr/local/perl-5.10/bin/perl Build.PL  exited with 0)
> CPAN::Reporter: Build.PL result is 'pass', No errors.
> Copying lib/Chess/GameClock/GclkSettings.pm -> 
> blib/lib/Chess/GameClock/GclkSett
> ings.pm
> Copying lib/Chess/GameClock/GameClock.pm -> 
> blib/lib/Chess/GameClock/GameClock.p
> m
> Copying lib/Chess/GameClock/GclkDisplay.pm -> 
> blib/lib/Chess/GameClock/GclkDispl
> ay.pm
> Copying lib/Chess/GameClock/GclkCounter.pm -> 
> blib/lib/Chess/GameClock/GclkCount
> er.pm
> Copying lib/Chess/GameClock/GclkData.pm -> 
> blib/lib/Chess/GameClock/GclkData.pm
> Manifying blib/lib/Chess/GameClock/GameClock.pm -> 
> blib/libdoc/Chess::GameClock:
> :GameClock.3
> Manifying blib/lib/Chess/GameClock/GclkCounter.pm -> 
> blib/libdoc/Chess::GameCloc
> k::GclkCounter.3
> Manifying blib/lib/Chess/GameClock/GclkDisplay.pm -> 
> blib/libdoc/Chess::GameCloc
> k::GclkDisplay.3
> Manifying blib/lib/Chess/GameClock/GclkData.pm -> 
> blib/libdoc/Chess::GameClock::
> GclkData.3
> Manifying blib/lib/Chess/GameClock/GclkSettings.pm -> 
> blib/libdoc/Chess::GameClo
> ck::GclkSettings.3
> (./Build exited with 0)
> CPAN::Reporter: Build result is 'pass', No errors.
>  CHESSKIT/Chess-GameClock-GameClock-1.0.tar.gz
>  ./Build -- OK
> Running Build test
> t/00-load...........Can't open perl script " -MDevel::Autoflush ": No such 
> file
> or directory
>  Dubious, test returned 2 (wstat 512, 0x200)
>  No subtests run
> t/pod-coverage......ok
> t/pod...............Can't open perl script " -MDevel::Autoflush ": No such 
> file or directory
>  Dubious, test returned 2 (wstat 512, 0x200)
>  No subtests run
>
> Test Summary Report
> -------------------
> t/00-load.t     (Wstat: 512 Tests: 0 Failed: 0)
>  Non-zero exit status: 2
>  Parse errors: No plan found in TAP output
> t/pod.t         (Wstat: 512 Tests: 0 Failed: 0)
>  Non-zero exit status: 2
>  Parse errors: No plan found in TAP output
> Files=3, Tests=5,  0 wallclock secs ( 0.00 usr  0.01 sys +  0.11 cusr  0.01 
> csys =  0.13 CPU)
> Result: FAIL
> Failed 2/3 test programs. 0/5 subtests failed.
> (./Build test exited with 512)
>
>
> --
> andreas
>

Reply via email to