Subject: | Tests Require module load under mod_perl 2 |
I had to add the following line to t/conf/extra.conf.in in order to get
the tests to pass using Apache2 with mod_perl2:
LoadModule apreq_module /usr/lib/apache2/modules/mod_apreq2.so
Without this line in extra.conf.in, the t/apache/basic.t tests fail like so:
t/apache/basic....NOK 1
# Failed test 'request succeeded'
# in t/apache/basic.t at line 13.
t/apache/basic....NOK 2
# Failed test 'response includes cookie'
# in t/apache/basic.t at line 14.
Use of uninitialized value in pattern match (m//) at t/apache/basic.t
line 15.
Use of uninitialized value in pattern match (m//) at t/apache/basic.t
line 19.
# Looks like you failed 2 tests of 4.
t/apache/basic....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
Failed 2/4 tests, 50.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/apache/basic.t 2 512 4 2 50.00% 1-2
I'm not sure if this load needs to be protected to avoid causing
problems with earlier versions of Apache & ModPerl. Nor am I certain
that the loading of the apreq2 module shouldn't be performed
automagically by Apache::Test or Apache::TestRequest, but I am not used
to looking so deeply into Apache's guts.
Thanks,