Re: [MP2] make test fails

[prev] [thread] [next] [Date index for 2004/11/23]

From: Stas Bekman
Subject: Re: [MP2] make test fails
Date: 15:44 on 23 Nov 2004
Ruslan U. Zakirov wrote:
>     Hello.
> 
> 1. Problem Description:
> 
> Fresh rebuild. Vanilla perl passed all tests.
> Apache and mod_perl from latest CVS.
> 
>  > make test TEST_VERBOSE=1 TEST_FILES="t/apache/util.t 
> t/api/lookup_uri.t t/api/request_rec.t t/hooks/init.t t/modperl/exit.t 
> t/user/rewrite.t"
> ...
> /usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
> t/TEST -clean
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /usr/bin/perl 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/TEST -clean
> APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= 
> APACHE_TEST_USER= APACHE_TEST_APXS= \
> /usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \
> t/TEST -bugreport -verbose=1 t/apache/util.t t/api/lookup_uri.t 
> t/api/request_rec.t t/hooks/init.t t/modperl/exit.t t/user/rewrite.t
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /usr/bin/perl 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/TEST -bugreport -verbose=1 
> 't/apache/util.t' 't/api/lookup_uri.t' 't/api/request_rec.t' 
> 't/hooks/init.t' 't/modperl/exit.t' 't/user/rewrite.t'
> /usr/local/apache-2/bin/httpd  -d 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t -f 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/conf/httpd.conf -D APACHE2 
> -D PERL_USEITHREADS
> using Apache/2.0.53-dev (prefork MPM)
> 
> waiting 120 seconds for server to start: .[Tue Nov 23 17:42:49 2004] 
> [info] 29 Apache:: modules loaded
> [Tue Nov 23 17:42:49 2004] [info] 8 APR:: modules loaded
> [Tue Nov 23 17:42:49 2004] [info] base server + 28 vhosts ready to run 
> tests
> ...
> waiting 120 seconds for server to start: ok (waited 3 secs)
> server localhost.localdomain:8529 started
> ......
> server localhost.localdomain:8561 listening 
> (TestDirective::perlloadmodule6)
> t/apache/util........request has failed (the response code was: 500)
> see t/logs/error_log for more details
> dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> t/api/lookup_uri.....request has failed (the response code was: 500)
> see t/logs/error_log for more details
> dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> t/api/request_rec....1..52
> # Running under perl version 5.008005 for linux
> # Current time local: Tue Nov 23 17:42:50 2004
> # Current time GMT:   Tue Nov 23 14:42:50 2004
> # Using Test.pm version 1.25
> # Using Apache/Test.pm version 1.17
> ok 1
> ok 2
> ok 3
> ok 4
> ok 5
> ok 6
> ok 7
> ok 8
> ok 9
> ok 10
> ok 11
> ok 12
> # testing : t->proto_num
> # expected: 1000
> # received: 1000
> ok 13
> # testing : $r->hostname
> # expected: localhost.localdomain
> # received: localhost.localdomain
> ok 14
> ok 15
> ok 16
> ok 17
> # testing : $r->method
> # expected: GET
> # received: GET
> ok 18
> # testing : $r->method_number
> # expected: 0
> # received: 0
> ok 19
> ok 20
> ok 21
> ok 22
> ok 23
> ok 24
> ok 25
> ok 26
> ok 27
> ok 28
> ok 29
> # buffered
> # testing : buffered print
> # expected: 11
> # received: 11
> ok 30
> # testing : buffered print
> # expected: 0
> # received: 0
> ok 31
> # not buffered
> # testing : unbuffered print
> # expected: 15
> # received: 15
> ok 32
> # expected: /TestAPI__request_rec/my_path_info?my_args=3
> # received: /TestAPI__request_rec
> not ok 33
> # testing : $r->uri
> # expected: /TestAPI__request_rec/my_path_info
> # received: /TestAPI__request_rec
> not ok 34
> # testing : $r->path_info
> # expected: /my_path_info
> # received:
> not ok 35
> # testing : $r->args
> # expected: my_args=3
> # received: undef
> not ok 36
> # testing : $r->the_request
> # expected: GET /TestAPI__request_rec/my_path_info?my_args=3 HTTP/1.0
> # received: GET /TestAPI__request_rec HTTP/1.0
> not ok 37
> ok 38
> # testing : $r->location
> # expected: /TestAPI__request_rec
> # received: /TestAPI__request_rec
> ok 39
> # sent so far: 1476 bytes
> ok 40
> # testing : mtime
> # expected: 1101216519
> # received: 1101216519
> ok 41
> # testing : $r->finfo
> # expected: 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> 
> # received: 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> 
> ok 42
> ok 43
> ok 44
> ok 45
> # testing : $r->content_languages
> # expected: [
> #     fr,
> # ]
> # received: [
> #     fr,
> # ]
> ok 46
> # testing : $r->content_languages
> # expected: [
> #     fr,
> # ]
> # received: [
> #     fr,
> # ]
> ok 47
> # testing : $r->content_languages
> # expected: [
> #     fr,
> #     us,
> #     cn,
> # ]
> # received: [
> #     fr,
> #     us,
> #     cn,
> # ]
> ok 48
> # testing : $r->content_languages(invalid)
> # expected: (?-xism:Not an array reference)
> # received: Not an array reference at 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> line 176.
> ok 49
> # testing : invalid Apache::RequestRec=HASH(0x9548ba4) object
> # expected: (?-xism:method `uri' invoked by a `Apache::RequestRec' 
> object with no `r' key!)
> # received: method `uri' invoked by a `Apache::RequestRec' object with 
> no `r' key! at 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> line 186.
> ok 50
> # testing : invalid NonExisting=HASH(0x9544788) object
> # expected: (?-xism:method `uri' invoked by a `NonExisting' object with 
> no `r' key!)
> # received: method `uri' invoked by a `NonExisting' object with no `r' 
> key! at 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> line 193.ok 51
> # testing : invalid HASH(0x9548bd4) object
> # expected: (?-xism:method `uri' invoked by a `unknown' object with no 
> `r' key!)
> # received: method `uri' invoked by a `unknown' object with no `r' key! 
> at 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> line 200.
> ok 52
> FAILED tests 33-37
>         Failed 5/52 tests, 90.38% okay
> t/hooks/init.........request has failed (the response code was: 404)
> see t/logs/error_log for more details
> dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> t/modperl/exit.......request has failed (the response code was: 500)
> see t/logs/error_log for more details
> dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> t/user/rewrite.......request has failed (the response code was: 404)
> see t/logs/error_log for more details
> dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> Failed Test         Stat Wstat Total Fail  Failed  List of Failed
> ------------------------------------------------------------------------------- 
> 
> t/apache/util.t      255 65280    ??   ??       %  ??
> t/api/lookup_uri.t   255 65280    ??   ??       %  ??
> t/api/request_rec.t               52    5   9.62%  33-37
> t/hooks/init.t       255 65280    ??   ??       %  ??
> t/modperl/exit.t     255 65280    ??   ??       %  ??
> t/user/rewrite.t     255 65280    ??   ??       %  ??
> Failed 6/6 test scripts, 0.00% okay. 5/52 subtests failed, 90.38% okay.
> [warning] server localhost.localdomain:8529 shutdown
> [  error] error running tests (please examine t/logs/error_log)
> +--------------------------------------------------------+
> | Please file a bug report: http://perl.apache.org/bugs/ |
> +--------------------------------------------------------+
> make: *** [run_tests] Ошибка 1
> 
>  > cat t/logs/error_log
> 
> END in modperl_extra.pl, pid=8185
> [Tue Nov 23 17:42:51 2004] [notice] Apache/2.0.53-dev (Unix) 
> mod_perl/1.99_18-dev Perl/v5.8.5 world domination series/2.0 DAV/2 
> SVN/1.1.1 configured -- resuming normal operations
> [Tue Nov 23 17:42:51 2004] [info] Server built: May 26 2004 14:55:11
> [Tue Nov 23 17:42:51 2004] [debug] prefork.c(955): AcceptMutex: sysvsem 
> (default: sysvsem)
> [Tue Nov 23 17:42:53 2004] [error] [client 127.0.0.1] failed to resolve 
> handler `TestApache::util': Use of bare << to mean <<"" is deprecated at 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestApache/util.pm 
> line 31.\nCompilation failed in require at (eval 106) line 3.\n
> [Tue Nov 23 17:42:54 2004] [error] [client 127.0.0.1] Can't call method 
> "run" on an undefined value at 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/lookup_uri.pm 
> line 54.\n
> # Failed test 33 in 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> at line 112
> # Failed test 34 in 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> at line 114
> # Failed test 35 in 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> at line 116
> # Failed test 36 in 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> at line 118
> # Failed test 37 in 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestAPI/request_rec.pm 
> at line 120
> [Tue Nov 23 17:42:55 2004] [error] [client 127.0.0.1] File does not 
> exist: /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/htdocs/TestHooks__init
> [Tue Nov 23 17:42:56 2004] [error] [client 127.0.0.1] Use of 
> uninitialized value in string eq at 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestModperl/exit.pm 
> line 22.\n
> [Tue Nov 23 17:42:57 2004] [error] [client 127.0.0.1] File does not 
> exist: 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/htdocs/TestUser__rewrite
> [Tue Nov 23 17:42:57 2004] [info] Child process pid=8195 is exiting
> END in modperl_extra.pl, pid=8195
> [Tue Nov 23 17:42:57 2004] [info] Child process pid=8196 is exiting
> END in modperl_extra.pl, pid=8196
> [Tue Nov 23 17:42:57 2004] [info] removed PID file 
> /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/logs/httpd.pid (pid=8190)
> [Tue Nov 23 17:42:57 2004] [notice] caught SIGTERM, shutting down
> END in modperl_extra.pl, pid=8190

Looks like a borked source to me. Try to get a new checkout (discard the 
old one) and try again. e.g. there is no << in t/response/TestApache/util.pm

 > [Tue Nov 23 17:42:53 2004] [error] [client 127.0.0.1] failed to resolve
 > handler `TestApache::util': Use of bare << to mean <<"" is deprecated at
 > /mnt/local/homes/home/cubic/CVS/modperl-2.0/t/response/TestApache/util.pm

this looks like cvs collision.

Beside modperl is no longer using cvs, it's now svn, please see:
http://perl.apache.org/docs/2.0/user/install/install.html#Downloading_the_mod_perl_Source

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

[MP2] make test fails
Ruslan U. Zakirov 14:53 on 23 Nov 2004

Re: [MP2] make test fails
Stas Bekman 15:44 on 23 Nov 2004

Re: [MP2] make test fails
Ruslan U. Zakirov 19:20 on 23 Nov 2004

Re: [MP2] make test fails
Stas Bekman 19:30 on 23 Nov 2004

Re: [MP2] make test fails
Ruslan U. Zakirov 19:48 on 23 Nov 2004

Re: [MP2] make test fails
Stas Bekman 19:56 on 23 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52