Subject: | Specify CGI.pm as a prerequisite (or skip tests) |
web/cgi-bin/yatt.lib/t/use.t and web/cgi-bin/yatt.lib/t/topcgi.t both need CGI.pm and fail if it's not installed. Please note that CGI.pm is not anymore part of the perl core modules since 5.22.0 or so.
# Failed test 'require YATT::Util::CGICompat;'
# at web/cgi-bin/yatt.lib/t/use.t line 64.
# Tried to require 'YATT::Util::CGICompat'.
# Error: Can't locate CGI.pm in @INC (you may need to install the CGI module) (@INC contains: /tmpfs/.cpan-build/2015110709/YATT-0.0_9-tnb5uw/web/cgi-bin/yatt.lib/t/.. /tmpfs/.cpan-build/2015110709/YATT-0.0_9-tnb5uw/blib/lib /tmpfs/.cpan-build/2015110709/YATT-0.0_9-tnb5uw/blib/arch /opt/perl-5.22.0t/lib/site_perl/5.22.0/x86_64-linux-thread-multi /opt/perl-5.22.0t/lib/site_perl/5.22.0 /opt/perl-5.22.0t/lib/5.22.0/x86_64-linux-thread-multi /opt/perl-5.22.0t/lib/5.22.0 .) at /tmpfs/.cpan-build/2015110709/YATT-0.0_9-tnb5uw/web/cgi-bin/yatt.lib/t/../YATT/Util/CGICompat.pm line 7.
# BEGIN failed--compilation aborted at /tmpfs/.cpan-build/2015110709/YATT-0.0_9-tnb5uw/web/cgi-bin/yatt.lib/t/../YATT/Util/CGICompat.pm line 7.
# Compilation failed in require at (eval 66) line 2.
# Looks like you failed 1 test of 118.
web/cgi-bin/yatt.lib/t/use.t ..............
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/118 subtests
(less 12 skipped subtests: 105 okay)
...
Can't locate CGI.pm in @INC (you may need to install the CGI module) (@INC contains: /tmpfs/.cpan-build/2015110709/YATT-0.0_9-tnb5uw/web/cgi-bin/yatt.lib/t/.. /tmpfs/.cpan-build/2015110709/YATT-0.0_9-tnb5uw/blib/lib /tmpfs/.cpan-build/2015110709/YATT-0.0_9-tnb5uw/blib/arch /opt/perl-5.22.0t/lib/site_perl/5.22.0/x86_64-linux-thread-multi /opt/perl-5.22.0t/lib/site_perl/5.22.0 /opt/perl-5.22.0t/lib/5.22.0/x86_64-linux-thread-multi /opt/perl-5.22.0t/lib/5.22.0 .) at web/cgi-bin/yatt.lib/t/topcgi.t line 11.
BEGIN failed--compilation aborted at web/cgi-bin/yatt.lib/t/topcgi.t line 11.
# Looks like your test exited with 2 before it could output anything.
web/cgi-bin/yatt.lib/t/topcgi.t ...........
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run