Subject: | test failure in t/epeg_basic.t |
$ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
Writing ppport.h
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Image::Epeg
Writing MYMETA.yml and MYMETA.json
$ make -O -j24
Running Mkbootstrap for Image::Epeg ()
chmod 644 Epeg.bs
cp lib/Image/Epeg.pm blib/lib/Image/Epeg.pm
/usr/bin/perl5.20.0 "-Iinc" /usr/lib/perl5/5.20.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.20.0/ExtUtils/typemap -typemap typemap Epeg.xs > Epeg.xsc && mv Epeg.xsc Epeg.c
gcc -c "-I." -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -pthread -DVERSION=\"0.13\" -DXS_VERSION=\"0.13\" -o Epeg.o -fPIC "-I/usr/lib/perl5/5.20.0/i386-linux-thread-multi/CORE" -DUSE_PPPORT Epeg.c
rm -f blib/arch/auto/Image/Epeg/Epeg.so
gcc -shared -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -pthread -L/usr/local/lib Epeg.o -o blib/arch/auto/Image/Epeg/Epeg.so \
-ljpeg \
chmod 755 blib/arch/auto/Image/Epeg/Epeg.so
/usr/bin/perl5.20.0 "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- Epeg.bs blib/arch/auto/Image/Epeg/Epeg.bs 644
Manifying blib/man3/Image::Epeg.3pm
$ make -O -j24 test
PERL_DL_NONLAZY=1 /usr/bin/perl5.20.0 "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
# libjpeg version is : 80
t/00_compile.t .............. ok
# Failed test 'saved'
# at t/epeg_basic.t line 25.
# Failed test 'undef isa 'Image::Epeg''
# at t/epeg_basic.t line 31.
# undef isn't defined
Can't call method "get_comment" on an undefined value at t/epeg_basic.t line 33.
# Looks like you planned 7 tests but ran 5.
# Looks like you failed 2 tests of 5 run.
# Looks like your test exited with 2 just after 5.
t/epeg_basic.t ..............
Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/7 subtests
t/epeg_crash.t .............. ok
t/epeg_size_after_resize.t .. ok
Test Summary Report
-------------------
t/epeg_basic.t (Wstat: 512 Tests: 5 Failed: 2)
Failed tests: 4-5
Non-zero exit status: 2
Parse errors: Bad plan. You planned 7 tests but ran 5.
Files=4, Tests=20, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.07 cusr 0.01 csys = 0.11 CPU)
Result: FAIL
Failed 1/4 test programs. 2/20 subtests failed.
Makefile:950: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
]$ prove -bv t/epeg_basic.t
t/epeg_basic.t ..
1..7
ok 1 - An object of class 'Image::Epeg' isa 'Image::Epeg'
ok 2 - get_width()
ok 3 - get_height()
not ok 4 - saved
# Failed test 'saved'
# at t/epeg_basic.t line 25.
not ok 5 - undef isa 'Image::Epeg'
# Failed test 'undef isa 'Image::Epeg''
# at t/epeg_basic.t line 31.
# undef isn't defined
Can't call method "get_comment" on an undefined value at t/epeg_basic.t line 33.
# Looks like you planned 7 tests but ran 5.
# Looks like you failed 2 tests of 5 run.
# Looks like your test exited with 2 just after 5.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/7 subtests
Test Summary Report
-------------------
t/epeg_basic.t (Wstat: 512 Tests: 5 Failed: 2)
Failed tests: 4-5
Non-zero exit status: 2
Parse errors: Bad plan. You planned 7 tests but ran 5.
Files=1, Tests=5, 0 wallclock secs ( 0.12 usr 0.01 sys + 0.14 cusr 0.02 csys = 0.29 CPU)
Result: FAIL