Subject: | mime_type tests fail without /etc/httpd/conf/mime.types |
If /etc/httpd/conf/mime.types doesn't exist, a few tests fail (output
below). Perhaps the mime_type tests should be skipped if the file can't
be found, or at the least, the test should bail with some informative
error message.
CPAN.pm: Going to build D/DT/DTIBERIO/Logfile-Access-1.30.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Logfile::Access
cp Access.pm blib/lib/Logfile/Access.pm
Manifying blib/man3/Logfile::Access.3pm
DTIBERIO/Logfile-Access-1.30.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1......1/62 unable to open /etc/httpd/conf/mime.types
# Failed test 'path()'
# at t/1.t line 42.
Use of uninitialized value in string eq at t/1.t line 43.
# Failed test 'mime_type()'
# at t/1.t line 43.
# Failed test 'tld()'
# at t/1.t line 59.
# Failed test 'path()'
# at t/1.t line 80.
Use of uninitialized value in string eq at t/1.t line 81.
# Failed test 'mime_type()'
# at t/1.t line 81.
# Looks like you failed 5 tests of 62.
t/1...... Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/62 subtests
Test Summary Report
-------------------
t/1.t (Wstat: 1280 Tests: 62 Failed: 5)
Failed tests: 21-22, 35, 53-54
Non-zero exit status: 5
Files=1, Tests=62, 0 wallclock secs ( 0.00 usr 0.05 sys + 0.03 cusr
0.17 csys = 0.25 CPU)
Result: FAIL
Failed 1/1 test programs. 5/62 subtests failed.
make: *** [test_dynamic] Error 5
DTIBERIO/Logfile-Access-1.30.tar.gz
/usr/bin/make test -- NOT OK
Thanks,
iank