Subject: | Undeclared dependency CGI |
The test suite fails if CGI.pm is not installed:
...
# Failed test 'use Yahoo::BBAuth;'
# at t/00_compile.t line 5.
# Tried to use 'Yahoo::BBAuth'.
# Error: Can't locate CGI.pm in @INC (you may need to install the CGI module) (@INC contains: ... .) at /home/cpansand/.cpan/build/2020101422/Yahoo-BBAuth-0.50-0/blib/lib/Yahoo/BBAuth.pm line 7.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2020101422/Yahoo-BBAuth-0.50-0/blib/lib/Yahoo/BBAuth.pm line 7.
Compilation failed in require at t/01_auth_url.t line 4.
BEGIN failed--compilation aborted at t/01_auth_url.t line 4.
# Looks like your test exited with 2 before it could output anything.
t/01_auth_url.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/1 subtests
...
(A sample report on CPAN Testers: http://www.cpantesters.org/cpan/report/0ec53b2c-2d47-11e5-87ad-6564adbd6459 )
Note that CGI.pm is not anymore bundled in the perl core and thus needs to be declared in Makefile.PL or Build.PL as a dependency.