Subject: | Undeclared dependency Graphics::TIFF |
t/00-all-usable.t fails if Graphics::TIFF is not installed:
...
# Failed test 'use PDF::Builder::Resource::XObject::Image::TIFF_GT;'
# at t/00-all-usable.t line 30.
# Tried to use 'PDF::Builder::Resource::XObject::Image::TIFF_GT'.
# Error: Can't locate Graphics/TIFF.pm in @INC (you may need to install the Graphics::TIFF module) (@INC contains: /usr/home/cpansand/.cpan/build/2017112700/PDF-Builder-3.008-7/blib/lib /usr/home/cpansand/.cpan/build/2017112700/PDF-Builder-3.008-7/blib/arch /usr/perl5.26.1t/lib/site_perl/5.26.1/amd64-freebsd-thread-multi /usr/perl5.26.1t/lib/site_perl/5.26.1 /usr/perl5.26.1t/lib/5.26.1/amd64-freebsd-thread-multi /usr/perl5.26.1t/lib/5.26.1 .) at /usr/home/cpansand/.cpan/build/2017112700/PDF-Builder-3.008-7/blib/lib/PDF/Builder/Resource/XObject/Image/TIFF/File_GT.pm line 10.
# BEGIN failed--compilation aborted at /usr/home/cpansand/.cpan/build/2017112700/PDF-Builder-3.008-7/blib/lib/PDF/Builder/Resource/XObject/Image/TIFF/File_GT.pm line 10.
# Compilation failed in require at /usr/home/cpansand/.cpan/build/2017112700/PDF-Builder-3.008-7/blib/lib/PDF/Builder/Resource/XObject/Image/TIFF_GT.pm line 16.
# BEGIN failed--compilation aborted at /usr/home/cpansand/.cpan/build/2017112700/PDF-Builder-3.008-7/blib/lib/PDF/Builder/Resource/XObject/Image/TIFF_GT.pm line 16.
# Compilation failed in require at t/00-all-usable.t line 30.
# BEGIN failed--compilation aborted at t/00-all-usable.t line 30.
# Failed test 'use PDF::Builder::Resource::XObject::Image::TIFF::File_GT;'
# at t/00-all-usable.t line 30.
# Tried to use 'PDF::Builder::Resource::XObject::Image::TIFF::File_GT'.
# Error: Attempt to reload PDF/Builder/Resource/XObject/Image/TIFF/File_GT.pm aborted.
# Compilation failed in require at t/00-all-usable.t line 30.
# BEGIN failed--compilation aborted at t/00-all-usable.t line 30.
# Looks like you failed 2 tests of 105.
t/00-all-usable.t ...........
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/105 subtests
...
Maybe the module has to be declared as a PREREQ_PM, or the test should skip this case if the module is not installed.