Subject: | Warnings because of missing $Image::Magick::VERSION |
Some (all?) Image::Magick versions do not define $VERSION:
$ perl -MImage::Magick\ 999
Image::Magick does not define $Image::Magick::VERSION--version check failed.
BEGIN failed--compilation aborted.
This is causing the t/Magick.t test to fail:
Use of uninitialized value $Image::Magick::VERSION in concatenation (.) or string at t/Magick.t line 44.
# Image::Magick VERSION
Use of uninitialized value $im_version in pattern match (m//) at t/Magick.t line 49.
Argument "" isn't numeric in numeric lt (<) at t/Magick.t line 51.
Use of uninitialized value $im_version in concatenation (.) or string at t/Magick.t line 52.
# Image::Magick 6.6 not available -- im_version im_two_version
# Saw 4 warning(s):
#
# Trace begun at t/MyTestHelpers.pm line 55
# MyTestHelpers::nowarnings_handler('Use of uninitialized value $Image::Magick::VERSION in concatenation (.) or string at t/Magick.t line 44.^J') called at t/Magick.t line 44
#
#
# Trace begun at t/MyTestHelpers.pm line 55
# MyTestHelpers::nowarnings_handler('Use of uninitialized value $im_version in pattern match (m//) at t/Magick.t line 49.^J') called at t/Magick.t line 49
#
#
# Trace begun at t/MyTestHelpers.pm line 55
# MyTestHelpers::nowarnings_handler('Argument "" isn\'t numeric in numeric lt (<) at t/Magick.t line 51.^J') called at t/Magick.t line 51
#
#
# Exit code 1 for warnings
t/Magick.t .........
Dubious, test returned 1 (wstat 256, 0x100)
All 2518 subtests passed
(less 2518 skipped subtests: 0 okay)