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