httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Wheeler <da...@wheeler.net>
Subject Re: libapreq-1.2 release candidate
Date Thu, 01 May 2003 00:47:55 GMT
On Wednesday, April 30, 2003, at 07:17  PM, Stas Bekman wrote:

> I've just changed the prerequisite:
>
>    my %require = (
>   -    "Apache::Test" => "", # any version will do
>   +    "Apache::Test" => "1.0",
>    );

I'm not sure that will help. See below.

> Does this solve the problem?
>
> Index: lib/Apache/TestMM.pm
> ===================================================================
> RCS file:  
> /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestMM.pm,v
> retrieving revision 1.24
> diff -u -r1.24 TestMM.pm
> --- lib/Apache/TestMM.pm        27 Mar 2003 07:57:06 -0000      1.24
> +++ lib/Apache/TestMM.pm        1 May 2003 00:17:15 -0000
> @@ -6,6 +6,7 @@
>  use Config;
>  use Apache::TestConfig ();
>  use Apache::TestTrace;
> +use Apache::Test;
>
>  sub import {
>      my $class = shift;

No, it doesn't. However, removing Apache::test _does_ solve the  
problem. I'm suspecting that Perl is, for some reason, loading  
Apache::test instead of Apache::Test, because it finds it first in  
@INC, and because Mac OS X's HFS+ has a case-insensitive file system.  
CPANPLUS apparently exhibits the same behavior, since it thought I was  
up-to-date, too. The only way to get around this problem (since  
Apache::test was, IIRC, installed as part of mod_perl 1.x), is to call  
Apache::Test something else. :-( Might be worth asking about this on  
p5p.

That said, I think that you still need to call something like the old  
Apache::test->get_test_params because Apache::Test seems to be finding  
the wrong Apache. It will likely find Apple's old /usr/sbin/httpd, when  
I'm actually installing it against /usr/local/apache/httpd. Other folks  
with more than one copy of Apache on their systems will encounter this  
problem. At any rate, all the tests fail:

/usr/local/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -clean
APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= \
/usr/local/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -verbose=0
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -verbose=0
*** root mode: changing the fs ownership to 'nobody'  
(4294967294:4294967294)
/usr/sbin/httpd -X -d /usr/local/src/libapreq-1.2/t -f  
/usr/local/src/libapreq-1.2/t/conf/httpd.conf -DAPACHE1
using Apache/1.3.27

waiting for server to start: ...Empty compile time value given to use  
lib at /usr/local/src/libapreq-1.2/t/conf/modperl_inc.pl line 19

waiting for server to start: ok (waited 2 secs)
server localhost:8529 started
apreq/big_input....NOK 1# Failed test 1 in apreq/big_input.t at line 40
apreq/big_input....NOK 2# Failed test 2 in apreq/big_input.t at line 40  
fail #2
apreq/big_input....NOK 3# Failed test 3 in apreq/big_input.t at line 40  
fail #3
apreq/big_input....NOK 4# Failed test 4 in apreq/big_input.t at line 40  
fail #4
apreq/big_input....NOK 5# Failed test 5 in apreq/big_input.t at line 40  
fail #5
apreq/big_input....NOK 6# Failed test 6 in apreq/big_input.t at line 40  
fail #6
apreq/big_input....NOK 7# Failed test 7 in apreq/big_input.t at line 40  
fail #7
apreq/big_input....NOK 8# Failed test 8 in apreq/big_input.t at line 40  
fail #8
apreq/big_input....NOK 9# Failed test 9 in apreq/big_input.t at line 40  
fail #9
apreq/big_input....NOK 10# Failed test 10 in apreq/big_input.t at line  
63
apreq/big_input....NOK 11# Failed test 11 in apreq/big_input.t at line  
63 fail #2
apreq/big_input....NOK 12# Failed test 12 in apreq/big_input.t at line  
63 fail #3
apreq/big_input....NOK 13# Failed test 13 in apreq/big_input.t at line  
63 fail #4
apreq/big_input....NOK 14# Failed test 14 in apreq/big_input.t at line  
63 fail #5
apreq/big_input....NOK 15# Failed test 15 in apreq/big_input.t at line  
63 fail #6
apreq/big_input....NOK 16# Failed test 16 in apreq/big_input.t at line  
63 fail #7
apreq/big_input....NOK 17# Failed test 17 in apreq/big_input.t at line  
63 fail #8
apreq/big_input....NOK 18# Failed test 18 in apreq/big_input.t at line  
63 fail #9
apreq/big_input....NOK 19# Failed test 19 in apreq/big_input.t at line  
63 fail #10
apreq/big_input....NOK 20# Failed test 20 in apreq/big_input.t at line  
63 fail #11
apreq/big_input....NOK 21# Failed test 21 in apreq/big_input.t at line  
63 fail #12
apreq/big_input....FAILED tests 1-21
         Failed 21/21 tests, 0.00% okay
apreq/cookie.......# Failed test 1 in apreq/cookie.t at line 20
apreq/cookie.......FAILED test 1
         Failed 1/1 tests, 0.00% okay
apreq/inherit......# Failed test 1 in apreq/inherit.t at line 11
apreq/inherit......FAILED test 1
         Failed 1/1 tests, 0.00% okay
apreq/request......NOK 1# Failed test 1 in apreq/request.t at line 18
apreq/request......NOK 2# Failed test 2 in apreq/request.t at line 26
apreq/request......FAILED tests 1-2
         Failed 2/2 tests, 0.00% okay
Failed Test       Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------ 
-------
apreq/big_input.t               21   21 100.00%  1-21
apreq/cookie.t                   1    1 100.00%  1
apreq/inherit.t                  1    1 100.00%  1
apreq/request.t                  2    2 100.00%  1-2
!!! error running tests (please examine t/logs/error_log)
make: *** [run_tests] Error 1

Regards,

David

-- 
David Wheeler                                     AIM: dwTheory
david@kineticode.com                              ICQ: 15726394
                                                Yahoo!: dew7e
                                                Jabber: Theory@jabber.org
Kineticode. Setting knowledge in motion.[sm]


Mime
View raw message