Subject: | Fedora "make test" errors |
Authen-Captcha-1.023
Perl v5.8.1 built for i386-linux-thread-multi
Linux 2.4.20-021stab022.1.777 #1 Sat Jun 26 17:05:57 MSD 2004 i686 i686 i386 GNU/Linux
libpng-1.2.8
gd-2.0.33
zlib-1.2.2.tgz
make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1....ok 24/32Use of uninitialized value in subroutine entry at /root/.cpan/build/Authen-Captcha-1.023/blib/lib/Authen/Captcha.pm line 396.
source is not of type GD::Image at /root/.cpan/build/Authen-Captcha-1.023/blib/lib/Authen/Captcha.pm line 396.
t/1....dubious
Test returned status 9 (wstat 2304, 0x900)
Scalar found where operator expected at (eval 153) line 1, near "'int' $__val"
(Missing operator before $__val?)
DIED. FAILED tests 25-32
Failed 8/32 tests, 75.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/1.t 9 2304 32 16 50.00% 25-32
Failed 1/1 test scripts, 0.00% okay. 8/32 subtests failed, 75.00% okay.
make: *** [test_dynamic] Error 2
I looked at Captcha.pm line 396 and $source is created as a GD::Image object just before this line so the problem is probably with $letter_png but that is as far as I got. I can not locate the right section of code for the Missing operator error. Sorry I could not be of more help.