Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 100294
Status: resolved
Priority: 0/
Queue: GD

People
Owner: RURBAN [...] cpan.org
Requestors: DAKKAR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.56
Fixed in: (no value)



Subject: image comparison test are too fragile to be useful
On a freshly checked-out and built GD 2.56: $ GDIMAGETYPE=gd prove -bv t/GD.t t/GD.t .. 1..11 ok 1 - use GD; ok 2 - use GD::Simple; # Testing using gd support. ok 3 - image comparison test 1 ok 4 - image comparison test 2 ok 5 - image comparison test 3 ok 6 - image comparison test 4 ok 7 - image comparison test 5 ok 8 - image comparison test 6 not ok 9 - image comparison test 7 # Failed test 'image comparison test 7' # at t/GD.t line 249. ok 10 - round trip gd ok 11 - round trip gd2 # Looks like you failed 1 test of 11. $ GDIMAGETYPE=gd2 prove -bv t/GD.t t/GD.t .. 1..11 ok 1 - use GD; ok 2 - use GD::Simple; # Testing using gd2 support. ok 3 - image comparison test 1 ok 4 - image comparison test 2 ok 5 - image comparison test 3 ok 6 - image comparison test 4 ok 7 - image comparison test 5 ok 8 - image comparison test 6 not ok 9 - image comparison test 7 # Failed test 'image comparison test 7' # at t/GD.t line 249. ok 10 - round trip gd ok 11 - round trip gd2 # Looks like you failed 1 test of 11. $ GDIMAGETYPE=gif prove -bv t/GD.t t/GD.t .. 1..11 ok 1 - use GD; ok 2 - use GD::Simple; # Testing using gif support. ok 3 - image comparison test 1 not ok 4 - image comparison test 2 # Failed test 'image comparison test 2' # at t/GD.t line 249. not ok 5 - image comparison test 3 # Failed test 'image comparison test 3' # at t/GD.t line 249. ok 6 - image comparison test 4 not ok 7 - image comparison test 5 # Failed test 'image comparison test 5' # at t/GD.t line 249. ok 8 - image comparison test 6 not ok 9 - image comparison test 7 # Failed test 'image comparison test 7' # at t/GD.t line 249. ok 10 - round trip gd ok 11 - round trip gd2 # Looks like you failed 4 tests of 11. $ GDIMAGETYPE=png prove -bv t/GD.t t/GD.t .. 1..11 ok 1 - use GD; ok 2 - use GD::Simple; # Testing using png support. ok 3 - image comparison test 1 not ok 4 - image comparison test 2 # Failed test 'image comparison test 2' # at t/GD.t line 249. ok 5 - image comparison test 3 ok 6 - image comparison test 4 ok 7 - image comparison test 5 ok 8 - image comparison test 6 not ok 9 - image comparison test 7 # Failed test 'image comparison test 7' # at t/GD.t line 249. ok 10 - round trip gd ok 11 - round trip gd2 # Looks like you failed 2 tests of 11. $ GDIMAGETYPE=jpeg prove -bv t/GD.t t/GD.t .. 1..11 ok 1 - use GD; ok 2 - use GD::Simple; # Testing using jpeg support. not ok 3 - image comparison test 1 # Failed test 'image comparison test 1' # at t/GD.t line 249. not ok 4 - image comparison test 2 # Failed test 'image comparison test 2' # at t/GD.t line 249. not ok 5 - image comparison test 3 # Failed test 'image comparison test 3' # at t/GD.t line 249. not ok 6 - image comparison test 4 # Failed test 'image comparison test 4' # at t/GD.t line 249. not ok 7 - image comparison test 5 # Failed test 'image comparison test 5' # at t/GD.t line 249. not ok 8 - image comparison test 6 # Failed test 'image comparison test 6' # at t/GD.t line 249. not ok 9 - image comparison test 7 # Failed test 'image comparison test 7' # at t/GD.t line 249. ok 10 - round trip gd ok 11 - round trip gd2 # Looks like you failed 7 tests of 11. Looking at cpantesters, I can see that many people are having similar problems.
Yes, I agree. For now I losened the always failing test 7 gd2 case. And I display the libgd version along with the failing tests. To be able to generate those cases. The other tests are only really useful for regression testing, but are not run by any tester. -- Reini Urban
I loosened the regressions test failures, and when you try the other formats, it will be TODO. This should do it to test the libgd compare API -- Reini Urban