develooper Front page | perl.perl5.porters | Postings from August 2009

Re: 5.10.1-RC1 Test::Harness ruins @INC

Thread Previous | Thread Next
From:
Sisyphus
Date:
August 9, 2009 20:01
Subject:
Re: 5.10.1-RC1 Test::Harness ruins @INC
Message ID:
9219107F51FE4EFAB0992A355651E64A@desktop2

----- Original Message ----- 
From: "Nicholas Clark" <nick@ccl4.org>

>> Can someone here suggest a likely place to find the cause ?
>
> Not directly, but what happens if you take a clean build of 5.10.0, and 
> then
> install from CPAN the same version of Test::Harness as 5.10.1-RC1 ships 
> with?
>
> That way, at least you can determine whether the problem is something in 
> the
> core binary, or the Test::Harness module.

Yes, the problem is with Test-Harness-3.17. If I install that into 5.10.0, 
@INC is broken in precisely the same way as on 5.10.1:

####################################
C:\>perl -MTest::Harness -e "runtests('inc.pl')"
inc.pl ..
INC: C:/PERL51~1/510~1.0/lib
INC: .

inc.pl .. ok
All tests successful.
Files=1, Tests=1,  0 wallclock secs ( 0.08 usr +  0.01 sys =  0.09 CPU)
Result: PASS
####################################

The original version of Test::Harness that I have for perl-5.10.0 is 2.64, 
and it causes no such problem:

####################################
C:\>perl -MTest::Harness -e "runtests('inc.pl')"
inc....
INC: C:/perl510_M/5.10.0/lib
INC: C:/perl510_M/site/5.10.0/lib
INC: .
INC: C:/perl510_M/5.10.0/lib
INC: C:/perl510_M/site/5.10.0/lib
INC: .

inc....ok
All tests successful.
Files=1, Tests=1,  0 wallclock secs ( 0.00 cusr +  0.00 csys =  0.00 CPU)
####################################

It does "double up" on @INC, but that's not a problem.

(I've now switched from my XP box to my Vista box - and the keen observer 
will note that @INC has changed slightly from my first post. Namely, 
'C:/perl510_M/site/lib' is no longer in @INC. I'm not sure what accounts for 
that difference, but that's not an issue for me - the main thing is to work 
out how Test::Harness-3.17 is breaking @INC.)

Version 2.99_01 is the first T::H version to cause the breakage.Version 
2.65_02 is ok.
That gives me something to work with.

Thanks, Nicholas.

Cheers,
Rob 


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About