Mailing List Archive

Embperl 2.2.0 make test failures
Hello Folks,

Two tests fail for me with Embperl 2.2.0. One seems trivial the other
possibly not so much. Make succeeds fine and I've got it running under
httpd 2.2.0 just fine.

The first failure seems to be just an old version in the
test/cmp/epoincdiv.htm file. I see the following error:

#194 EmbperlObject/epoincdiv.htm...
Error in Line 286
Is: ><P>2.2.0<P><
Should: ><P>2.1<
Input: test/html/EmbperlObject/epoincdiv.htm
Output: test/tmp/out.htm
Compared to: test/cmp/epoincdiv.htm
Log: test/tmp/test.log
Testparameter:
cgi = 0
offline = 0

If I change line 286 of test/cmp/epoincdiv.htm to be 2.2.0 the test passes.

A similar error occurs for test/cmp/epodiv.htm :

#196 EmbperlObject/epodiv.htm...
Error in Line 282
Is: ><P>2.2.0<P><
Should: ><P>(2\.1.*?|1\.3.*?)<P><
Input: test/html/EmbperlObject/epodiv.htm
Output: test/tmp/out.htm
Compared to: test/cmp/epodiv.htm
Log: test/tmp/test.log
Testparameter:
offline = 0

with a similar fix. Then I run into real trouble:

#216 EmbperlObject/errdoc/epoerrdoc2.htm...

Expected 2 more error(s) in logfile

Input: test/html/EmbperlObject/errdoc/epoerrdoc2.htm
Output: test/tmp/out.htm
Log: test/tmp/test.log
Testparameter:
errors = 4
noerrtest = 1
cgi = 0
offline = 0

The test/tmp/out.htm file shows 4 errors (the log is attached):

<html>
<head>
<title>Tests for Embperl - ErrorDocument</title>
</head>

<body>

This page is shown due to an ErrorDocument redirection<p>


main:
prev: Apache2::RequestRec=SCALAR(0x91d1a18)
next:
There are 4 errormessages:

<table border=1>
<tr><td>[29171]ERR: 32: Warning in Perl code: (in
cleanup) Can't locate bad_module_without_name.pm in @INC (@INC contain
s: /home/mbockol/wsg-src/builds/Embperl-2.2.0/blib/arch
/home/mbockol/wsg-src/builds/Embperl-2.2.0/blib/lib .
/usr/lib/perl5/5.8.5/i386-li
nux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thr
ead-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/sit
e_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/
site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.
0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-mul
ti /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /us</td></tr>

<tr><td>[29171]ERR: 24: Error in Perl code: Can't locate
bad_module_without_name.pm in @INC (@INC contains: /home/mbockol/wsg-sr
c/builds/Embperl-2.2.0/blib/arch
/home/mbockol/wsg-src/builds/Embperl-2.2.0/blib/lib .
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/l
ib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl
5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux
-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/li
b/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_p
erl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendo
r_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/ve</td></tr>

<tr><td>[29171]ERR: 32: Warning in Perl code: (in
cleanup) Can't locate bad_module_without_name.pm in @INC (@INC contain
s: /home/mbockol/wsg-src/builds/Embperl-2.2.0/blib/arch
/home/mbockol/wsg-src/builds/Embperl-2.2.0/blib/lib .
/usr/lib/perl5/5.8.5/i386-li
nux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thr
ead-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/sit
e_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/
site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.
0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-mul
ti /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /us</td></tr>

<tr><td>[29171]ERR: 24: Error in Perl code: Can't locate
bad_module_without_name.pm in @INC (@INC contains: /home/mbockol/wsg-sr
c/builds/Embperl-2.2.0/blib/arch
/home/mbockol/wsg-src/builds/Embperl-2.2.0/blib/lib .
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/l
ib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl
5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux
-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/li
b/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_p
erl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendo
r_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/ve</td></tr>
</table>

</body>
</html>


I can bypass this error by erasing it from test.pl and everything else
seems to go fine. I don't understand the test process well enough at
this point to debug it though. Hopefully this will help.

Thanks,
Matt Bockol
Web Technical Administrator
Carleton College, Northfield MN
RE: Embperl 2.2.0 make test failures [ In reply to ]
>
> The first failure seems to be just an old version in the
> test/cmp/epoincdiv.htm file. I see the following error:
>

Oops, I raised the version nummer after doing the final tests. I should have
done this the other way round. I will fix this soon.

>
> #216 EmbperlObject/errdoc/epoerrdoc2.htm...
>
> Expected 2 more error(s) in logfile
>

Could you please run

make test TESTARGS="-h 216"

And send me test/tmp/httpd.err.log

>
> I can bypass this error by erasing it from test.pl and
> everything else seems to go fine.

make test TESTARGS="-i"

Will also ignore these errors, just for your convenience

Gerald



** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Embperl 2.2.0 make test failures [ In reply to ]
Gerald Richter wrote:

>>#216 EmbperlObject/errdoc/epoerrdoc2.htm...
>>
>>Expected 2 more error(s) in logfile
>>
>>
>>
>
>Could you please run
>
> make test TESTARGS="-h 216"
>
>And send me test/tmp/httpd.err.log
>
>
>
The log file is attached. Thanks for your help.

Matt
RE: Embperl 2.2.0 make test failures [ In reply to ]
RE: Embperl 2.2.0 make test failures [ In reply to ]
> >
> > Gerald Richter wrote:
> >
> > >>#216 EmbperlObject/errdoc/epoerrdoc2.htm...
> > >>
> > >>Expected 2 more error(s) in logfile
> > >>
> > >>
> > >>
> > >
> > >Could you please run
> > >
> > > make test TESTARGS="-h 216"
> > >
>
Seem like your httpd is truncateing the line in the logfile,
because your @INC search path seems to be extra long.

If you change line 809 in test.pl from

errors => 4

To

errors => 2

Does it still fail?

Gerald




** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Embperl 2.2.0 make test failures [ In reply to ]
Gerald Richter wrote:

>
>
>>>Gerald Richter wrote:
>>>
>>>
>>>
>>>>>#216 EmbperlObject/errdoc/epoerrdoc2.htm...
>>>>>
>>>>>Expected 2 more error(s) in logfile
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>Could you please run
>>>>
>>>> make test TESTARGS="-h 216"
>>>>
>>>>
>>>>
> Seem like your httpd is truncateing the line in the logfile,
> because your @INC search path seems to be extra long.
>
> If you change line 809 in test.pl from
>
> errors => 4
>
> To
>
> errors => 2
>
> Does it still fail?
>
> Gerald
>
>
>

Yes, still failing. I hadn't noticed how long the @INC path was. I
should probably take a closer look at that. Here's the output from the test:

PERL_DL_NONLAZY=0 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl -h 216

loading... ok


Performing httpd syntax check 1 ... ok


Performing httpd syntax check 2 ... ok


Starting httpd... pid = 22981 ok

Testing mod_perl mode...

#216 EmbperlObject/errdoc/epoerrdoc2.htm...
Error in Line 21
Is: > <tr><td>[22981]ERR: 32: Warning in Perl code: (in cleanup)
Can't locate bad_module_without_name.pm in @INC (@INC contains:
/home/mbockol/wsg-src/builds/Embperl-2.2.0/blib/arch
/home/mbockol/wsg-src/builds/Embperl-2.2.0/blib/lib .
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /us</td></tr><
Should: >BEGIN failed--compilation aborted<
Input: test/html/EmbperlObject/errdoc/epoerrdoc2.htm
Output: test/tmp/out.htm
Compared to: test/cmp/epoerrdoc2.htm
Log: test/tmp/test.log
Testparameter:
errors = 2
noerrtest = 1
cgi = 0
offline = 0

ERRORS detected! NOT all tests have been passed successfully

make: *** [test_dynamic] Terminated
Terminated


And the httpd error log is attached.

Thanks,
Matt
RE: Embperl 2.2.0 make test failures [ In reply to ]
RE: Embperl 2.2.0 make test failures [ In reply to ]
> >
> > Yes, still failing. I hadn't noticed how long the @INC path was. I
> > should probably take a closer look at that. Here's the
> output from the
> > test:
> >
>
Ok, this is really only failing because of your long @INC
path and the way the lines are wrapped around. I don't have a
simple fix for this and since the test shows exactly the
correct result, I think we can leave it as it is for now.

Gerald





** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org