Subject: | Tests fail without some optional modules |
Many modules are used by "eval {require FOO}" idiom to make the dependency optional.
I iterated over these modules and checked whether tests pass if the module cannot be loaded (by rewriting code to "eval {require XXX::FOO}"). If following modules are not available, tests will fail:
Encode
POSIX
Time::Local
Example of the failure:
t/Canon.t .......... ok
Test 4 differs beginning at line 26:
Test gave: "[MakerNotes, CanonRaw, Time] 0 - Date/Time Original: 2003:11:10 17:39:26"
Should be: "[MakerNotes, CanonRaw, Time] 0 - Date/Time Original: 2003:12:04 06:46:52"
t/CanonRaw.t .......
Failed 1/7 subtests
I recommend to adjust tests or make the modules a hard dependency.