[BUG] mod_perl2 test failures (when building Debian package)
am 22.12.2008 17:47:18 von Gunnar WolfHi,
I am a member of the Debian pkg-perl group [1]. I stumbled upon a test
failure when rebuilding - For further information on my build
environment, please refer to the bug report in the Debian BTS [2].
The test failure appears on hooks/authz.t:
Test Summary Report
-------------------
t/hooks/authz (Wstat: 0 Tests: 4 Failed: 1)
Failed test: 4
As per the instructions on the modperl website, I ran (snipping out
the repetitive lines that I don't think convey any extra information):
$ make test TEST_VERBOSE=1 TEST_FILES="hooks/authz.t"
(...)
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /tmp/build-area/libapache2-mod-perl2-2.0.4/t/TEST -clean
echo "*** PASSENV: APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= APACHE_TEST_APXS="
*** PASSENV: APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= APACHE_TEST_APXS=
echo "*** APACHE_TEST_HTTPD: "
*** APACHE_TEST_HTTPD:
echo "*** APACHE_TEST_EXTRA_ARGS: "
*** APACHE_TEST_EXTRA_ARGS:
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= APACHE_TEST_APXS= \
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=1 hooks/authz.t
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /tmp/build-area/libapache2-mod-perl2-2.0.4/t/TEST -bugreport -verbose=1 'hooks/authz.t'
/usr/sbin/apache2 -d /tmp/build-area/libapache2-mod-perl2-2.0.4/t -f /tmp/build-area/libapache2-mod-perl2-2.0.4/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
using Apache/2.2.11 (prefork MPM)
waiting 120 seconds for server to start: .[Mon Dec 22 10:34:52 2008] [info] 6 Apache2:: modules loaded
[Mon Dec 22 10:34:52 2008] [info] 0 APR:: modules loaded
[Mon Dec 22 10:34:52 2008] [info] base server + 28 vhosts ready to run tests
.
waiting 120 seconds for server to start: ok (waited 1 secs)
(...)
server localhost:8550 listening (TestHooks::hookrun)
(...)
t/hooks/authz....
1..4
# Running under perl version 5.010000 for linux
# Current time local: Mon Dec 22 10:34:54 2008
# Current time GMT: Mon Dec 22 16:34:54 2008
# Using Test.pm version 1.25
# Using Apache/Test.pm version 1.31
ok 1
ok 2
ok 3
not ok 4
# Failed test 4 in t/hooks/authz.t at line 19
Failed 1/4 subtests
Test Summary Report
-------------------
t/hooks/authz (Wstat: 0 Tests: 4 Failed: 1)
Failed test: 4
Files=1, Tests=4, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.40 cusr 0.06 csys = 0.50 CPU)
Result: FAIL
Failed 1/1 test programs. 1/4 subtests failed.
[warning] server localhost: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] Error 1
This test attempts to:
ok ! GET_OK $location;
Fail to get the requested resource with no authorization information
my $rc = GET_RC $location;
ok $rc == 401;
Ensure the failure is due to lack of authorization
ok GET_OK $location, username => 'dougm', password => 'foo';
Ensure that, given the proper authorization credentials, the request
succeeds.
ok ! GET_OK $location, username => 'jobbob', password => 'whatever';
Ensure that, without a wrong authorization, the request fails
Now, this last step is the one failing - For some reason, I get this
in my logs/error_log:
127.0.0.1 - - [22/Dec/2008:10:34:54 -0600] "GET /index.html HTTP/1.0" 200 873
127.0.0.1 - - [22/Dec/2008:10:34:54 -0600] "GET /TestHooks__authz HTTP/1.0" 401 534
127.0.0.1 - - [22/Dec/2008:10:34:54 -0600] "GET /TestHooks__authz HTTP/1.0" 401 534
127.0.0.1 - - [22/Dec/2008:10:34:54 -0600] "GET /TestHooks__authz HTTP/1.0" 401 534
127.0.0.1 - dougm [22/Dec/2008:10:34:54 -0600] "GET /TestHooks__authz HTTP/1.0" 200 217
127.0.0.1 - dougm [22/Dec/2008:10:34:54 -0600] "GET /TestHooks__authz HTTP/1.0" 200 217
This is, either the test sends again the original authorization
information, or the server fails to forget it and process the new one.
Thank you for any insight.
Oh! I am not subscribed to the list, and I'm not the sole maintainer
for this package in Debian - please include the bug report's mail
address (509457@bugs.debian.org) in any replies.
Thanks,
[1] http://pkg-perl.alioth.debian.org/
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509457
--
Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973 F800 D80E F35A 8BB5 27AF