Skip Menu |

This queue is for tickets about the Test-Harness CPAN distribution.

Report information
The Basics
Id: 14767
Status: resolved
Priority: 0/
Queue: Test-Harness

People
Owner: andy [...] hexten.net
Requestors: jeremy.devenport [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Mon, 26 Sep 2005 15:00:12 -0700
From: Jeremy Devenport <jeremy.devenport [...] gmail.com>
To: bug-test-harness [...] rt.cpan.org
Subject: Can't locate Devel/Cover.pm in @INC during runtests()
I've written a small wrapper script to walk a tree of tests and run them with runtests(). I'm now trying to generate code coverage reports for the tests and am getting some noise from Test::Harness. I am using a clean ActiveState perl install rooted at c:\perl. I have the Devel::Cover module under e:\myperl. When I want to generate coverage data I add the e:\myperl directories in to PERL5LIB and set PERL5OPT=-MDevel::Cover=-db,e:\coverdata. When runtests() runs the code in Test::Harness::Straps::_default_inc clears the PERL5LIB environment variable and invokes perl. However, since PERL5OPT is not cleared it generates the error "Can't locate Devel/Cover.pm in @INC". I think that the code in _default_inc should also clear PERL5OPT. Thanks, Jeremy
Date: Mon, 26 Sep 2005 15:11:59 -0700
From: Michael G Schwern <schwern [...] pobox.com>
To: Jeremy Devenport via RT <bug-Test-Harness [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #14767] Can't locate Devel/Cover.pm in @INC during runtests()
RT-Send-Cc:
On Mon, Sep 26, 2005 at 06:00:35PM -0400, Jeremy Devenport via RT wrote: Show quoted text
> When runtests() runs the code in Test::Harness::Straps::_default_inc > clears the PERL5LIB environment variable and invokes perl. However, > since PERL5OPT is not cleared it generates the error "Can't locate > Devel/Cover.pm in @INC". I think that the code in _default_inc should > also clear PERL5OPT.
Ooh, nice catch. It should probably also clear PERLLIB as well, just in case. -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern Ahh email, my old friend. Do you know that revenge is a dish that is best served cold? And it is very cold on the Internet!
Fixed in 2.99