You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Chris Faust <cf...@doyougot.com> on 2005/01/09 16:59:49 UTC

MP2 - Make test Error - t/api/request_rec.t

Hi Stas,

Moving to a new server and I'm rebuilding everything from scratch, I'm getting a single error during "make test" for "t/api/request_rec.t".
Didn't find much info on it, saw a message from you to Ruslan Zakirov which had the error but the email was for a different problem.

Any ideas?

Below is the results of the error log and screen results after using the t/TEST -clean and -verbose methods.

Apache 2.0.52
mp2 - 1.999.20
Linux Redhat Enterprise

Thanks In Advance!!!
-Chris

Error Log (1st as its the smallest)

END in modperl_extra.pl, pid=17489
[Sun Jan 09 10:45:27 2005] [notice] Apache/2.0.52 (Unix) world domination series/2.0 mod_perl/1.999.20 Perl/v5.8.0 configured -- resuming normal operations
[Sun Jan 09 10:45:27 2005] [info] Server built: Jan  9 2005 09:11:33
[Sun Jan 09 10:45:27 2005] [debug] prefork.c(955): AcceptMutex: sysvsem (default: sysvsem)
# Failed test 14 in /home/chris/mod_perl-2.0.0-RC3/t/response/TestAPI/request_rec.pm at line 63
[Sun Jan 09 10:45:28 2005] [info] Child process pid=17500 is exiting
END in modperl_extra.pl, pid=17500
[Sun Jan 09 10:45:28 2005] [info] Child process pid=17499 is exiting
END in modperl_extra.pl, pid=17499
[Sun Jan 09 10:45:28 2005] [info] removed PID file /home/chris/mod_perl-2.0.0-RC3/t/logs/httpd.pid (pid=17493)
[Sun Jan 09 10:45:28 2005] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=17493


Screen Output During Make test

 t/TEST -clean
t/TEST -verbose t/api/request_rec.t

[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /home/chris/mod_perl-2.0.0-RC3/t/TEST -verbose 't/api/request_rec.t'
/usr/local/apache2/bin/httpd  -d /home/chris/mod_perl-2.0.0-RC3/t -f /home/chris/mod_perl-2.0.0-RC3/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
using Apache/2.0.52 (prefork MPM)

waiting 120 seconds for server to start: .[Sun Jan 09 10:45:25 2005] [info] 7 Apache:: modules loaded
[Sun Jan 09 10:45:25 2005] [info] 0 APR:: modules loaded
[Sun Jan 09 10:45:25 2005] [info] base server + 27 vhosts ready to run tests
.
waiting 120 seconds for server to start: ok (waited 1 secs)
server TAGTEAM-ES3:8529 started
server TAGTEAM-ES3:8530 listening (filter_out_apache)
server TAGTEAM-ES3:8531 listening (TestModules::proxy)
server TAGTEAM-ES3:8532 listening (TestModperl::merge)
server TAGTEAM-ES3:8533 listening (TestModperl::perl_options)
server TAGTEAM-ES3:8534 listening (TestModperl::setupenv)
server TAGTEAM-ES3:8535 listening (TestVhost::config)
server TAGTEAM-ES3:8536 listening (TestVhost::log)
server TAGTEAM-ES3:8537 listening (TestUser::rewrite)
server TAGTEAM-ES3:8538 listening (TestProtocol::pseudo_http)
server TAGTEAM-ES3:8539 listening (TestProtocol::echo_bbs2)
server TAGTEAM-ES3:8540 listening (TestProtocol::echo_block)
server TAGTEAM-ES3:8541 listening (TestProtocol::echo_timeout)
server TAGTEAM-ES3:8542 listening (TestProtocol::echo_filter)
server TAGTEAM-ES3:8543 listening (TestProtocol::echo_bbs)
server TAGTEAM-ES3:8544 listening (TestProtocol::echo_nonblock)
server TAGTEAM-ES3:8545 listening (TestPreConnection::note)
server TAGTEAM-ES3:8546 listening (TestHooks::trans)
server TAGTEAM-ES3:8547 listening (TestHooks::hookrun)
server TAGTEAM-ES3:8548 listening (TestHooks::startup)
server TAGTEAM-ES3:8549 listening (TestHooks::stacked_handlers2)
server TAGTEAM-ES3:8550 listening (TestHooks::init)
server TAGTEAM-ES3:8551 listening (TestFilter::in_bbs_inject_header)
server TAGTEAM-ES3:8552 listening (TestFilter::both_str_con_add)
server TAGTEAM-ES3:8553 listening (TestFilter::in_bbs_msg)
server TAGTEAM-ES3:8554 listening (TestFilter::in_str_msg)
server TAGTEAM-ES3:8555 listening (TestDirective::perlmodule)
server TAGTEAM-ES3:8556 listening (TestDirective::perlrequire)
server TAGTEAM-ES3:8557 listening (TestDirective::perlloadmodule3)
server TAGTEAM-ES3:8558 listening (TestDirective::perlloadmodule4)
server TAGTEAM-ES3:8559 listening (TestDirective::perlloadmodule5)
server TAGTEAM-ES3:8560 listening (TestDirective::perlloadmodule6)
t/api/request_rec....1..54
# Running under perl version 5.008 for linux
# Current time local: Sun Jan  9 10:45:26 2005
# Current time GMT:   Sun Jan  9 15:45:26 2005
# Using Test.pm version 1.23
# Using Apache/Test.pm version 1.20
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: TAGTEAM-ES3
# received: tagteam-es3
not ok 14
# testing : $r->hostname rw
# expected: other.hostname
# received: other.hostname
ok 15
ok 16
ok 17
ok 18
# testing : $r->method
# expected: GET
# received: GET
ok 19
# testing : $r->method_number
# expected: 0
# received: 0
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
# buffered
# testing : buffered print
# expected: 11
# received: 11
ok 31
# testing : buffered print
# expected: 0E0
# received: 0E0
ok 32
# not buffered
# testing : unbuffered print
# expected: 15
# received: 15
ok 33
# expected: /TestAPI__request_rec/my_path_info?my_args=3
# received: /TestAPI__request_rec/my_path_info?my_args=3
ok 34
# testing : $r->uri
# expected: /TestAPI__request_rec/my_path_info
# received: /TestAPI__request_rec/my_path_info
ok 35
# testing : $r->path_info
# expected: /my_path_info
# received: /my_path_info
ok 36
# testing : $r->args
# expected: my_args=3
# received: my_args=3
ok 37
# testing : $r->the_request
# expected: GET /TestAPI__request_rec/my_path_info?my_args=3 HTTP/1.0
# received: GET /TestAPI__request_rec/my_path_info?my_args=3 HTTP/1.0
ok 38
ok 39
# testing : $r->location
# expected: /TestAPI__request_rec
# received: /TestAPI__request_rec
ok 40
# sent so far: 1605 bytes
ok 41
# testing : mtime
# expected: 1104972407
# received: 1104972407
ok 42
# testing : $r->finfo
# expected: /home/chris/mod_perl-2.0.0-RC3/t/response/TestAPI/request_rec.pm
# received: /home/chris/mod_perl-2.0.0-RC3/t/response/TestAPI/request_rec.pm
ok 43
ok 44
ok 45
ok 46
# testing : $r->content_languages
# expected: [
#     fr,
# ]
# received: [
#     fr,
# ]
ok 47
# testing : $r->content_languages
# expected: [
#     fr,
# ]
# received: [
#     fr,
# ]
ok 48
# testing : $r->content_languages
# expected: [
#     fr,
#     us,
#     cn,
# ]
# received: [
#     fr,
#     us,
#     cn,
# ]
ok 49
# testing : $r->content_languages(invalid)
# expected: (?-xism:Not an array reference)
# received: Not an array reference at /home/chris/mod_perl-2.0.0-RC3/t/response/TestAPI/request_rec.pm line 183.
ok 50
# testing : invalid Apache::RequestRec=HASH(0xa696998) 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 /home/chris/mod_perl-2.0.0-RC3/t/response/TestAPI/request_rec.pm line 193.
ok 51
# testing : invalid NonExisting=HASH(0xa694300) 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 /home/chris/mod_perl-2.0.0-RC3/t/response/TestAPI/request_rec.pm line 200.
ok 52
# testing : invalid HASH(0xa6969c8) 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 /home/chris/mod_perl-2.0.0-RC3/t/response/TestAPI/request_rec.pm line 207.
ok 53
ok 54
FAILED test 14
        Failed 1/54 tests, 98.15% okay
Failed Test         Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/api/request_rec.t               54    1   1.85%  14
Failed 1/1 test scripts, 0.00% okay. 1/54 subtests failed, 98.15% okay.
[warning] server TAGTEAM-ES3:8529 shutdown
[  error] error running tests (please examine t/logs/error_log)



Re: MP2 - Make test Error - t/api/request_rec.t

Posted by Stas Bekman <st...@stason.org>.
Chris Faust wrote:
> Hi Stas,
> 
> Moving to a new server and I'm rebuilding everything from scratch, I'm
> getting a single error during "make test" for "t/api/request_rec.t".
> Didn't find much info on it, saw a message from you to Ruslan Zakirov
> which had the error but the email was for a different problem.

> # testing : $r->hostname
> # expected: TAGTEAM-ES3
> # received: tagteam-es3
> not ok 14

This patch should fix it, Chris:

Index: t/response/TestAPI/request_rec.pm
===================================================================
--- t/response/TestAPI/request_rec.pm   (revision 124805)
+++ t/response/TestAPI/request_rec.pm   (working copy)
@@ -60,7 +60,7 @@
      # HTTP 1.0
      ok t_cmp $r->proto_num, 1000, 't->proto_num';

-    ok t_cmp $r->hostname, $r->get_server_name, '$r->hostname';
+    ok t_cmp lc($r->hostname), lc($r->get_server_name), '$r->hostname';

      {
          my $old_hostname = $r->hostname("other.hostname");


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