- fix SV type probing to work on perl before 5.12.
https://rt.cpan.org/Ticket/Display.html?id=96761
+ - PNG: skip the benign error test before libpng 1.6.0, since the
+ error we're testing didn't exist before 1.6.0.
+ https://rt.cpan.org/Ticket/Display.html?id=94717 (continued)
+
Imager 0.99 - 25 Jun 2014
===========
"read bad crc with png_ignore_benign_errors");
}
- my $im = Imager->new;
- ok($im->read(file => "testimg/bipalette.png", type => "png",
- png_ignore_benign_errors => 1),
+ SKIP:
+ {
+ Imager::File::PNG::i_png_lib_version() >= 10600
+ or skip "unused palette not benign errored before 1.6.0", 2;
+ my $im = Imager->new;
+ ok($im->read(file => "testimg/bipalette.png", type => "png",
+ png_ignore_benign_errors => 1),
"read grey image with palette with png_ignore_benign_errors");
- ok(!$im->read(file => "testimg/bipalette.png", type => "png",
- png_ignore_benign_errors => 0),
+ ok(!$im->read(file => "testimg/bipalette.png", type => "png",
+ png_ignore_benign_errors => 0),
"read grey image with palette without png_ignore_benign_errors should fail");
+ }
}
{ # write error reporting