On Sun, 09 Nov 2008 21:13:45 +0100
Slaven Rezic <[EMAIL PROTECTED]> wrote:
> imacat <[EMAIL PROTECTED]> writes:
> > On Tue, 04 Nov 2008 11:21:53 +0200
> > Shlomi Fish <[EMAIL PROTECTED]> wrote:
> >> The testing of http://nntp.x.perl.org/group/perl.cpan.testers/2539942 for 
> >> Error.pm fails. It seems like it exits on t/pod-coverage.t . One problem 
> >> may 
> >> be the extremely long $PERL5LIB.
> I am not convinced that the PERL5LIB was too long in this case. The
> test output in the report is cropped, unfortunately, but the
> environment section below shows that PERL5LIB has just a size of about
> 20k, which should not cause a problem on modern Unix systems (on
> Windows systems however, this would already hit some limits).
> 
> But the size of the failing open3 command is already >50k, and it is
> even cropped, so it's probably much longer! Pick up one of the
> directories in this command line, say GD-2.41-6xIk4L/blib/arch: it
> appears three times. It looks like something is overflowing the
> maximum command line on this system, which is probably 256k or so.
> 
> My guess is that Test::Harness is causing this problem. Test::Harness
> needs to do some magic if the test file is flagged with -T, because
> PERL5LIB is tainted, but does it wrong somehow, adding the libraries
> too many times into the command line. The easiest workaround is to
> remove the -T flag, but I think Test::Harness needs a fix here.

    Thanks for the detailed analysis.  I do not think the long -I
(actually, not PERL5LIB) is the cause, too.  It is not too long yet
(131 modules) for Unix shells.  The real cause may sit somewhere else.

    But still, the -I list repeating itself 3 times is not right.  131
modules result in 131x2x3=786 arguments, which cause the real error
message being truncated.  And, without the clue of the root testing
module, I can hardly replay the error and diagnosis the problem.

    Is it possible that when tracking the dependency, the root testing
module is also recorded in the test reports?

    Is it possible to check and avoid duplicates when attaching include
directories?

--
Best regards,
imacat ^_*' <[EMAIL PROTECTED]>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.asc

<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://lists.linux.org.tw/cgi-bin/mailman/listinfo/tlug

Reply via email to