- handle the presence of the default broken giflib better,
by giving them some more prose about the problem, and skipping
all but the first test that fails with the broken giflib
+ - i_box_cfill() went into an infinite loop on fountain fills
+ or fills on images with more than 8-bits/sample
=================================================================
(fill->fill_with_fcolor)(fill, x1, y1, x2-x1, im->channels, line);
}
i_plinf(im, x1, x2, y1, line);
+ ++y1;
}
myfree(line);
if (work)
#!perl -w
use strict;
-print "1..39\n";
+print "1..40\n";
use Imager ':handy';
use Imager::Fill;
$oocopy->errstr =~ /Unknown hatch type/,
"error message for automatic fill conversion");
+# previous box fills to float images, or using the fountain fill
+# got into a loop here
+{
+ local $SIG{ALRM} = sub { die; };
+
+ eval {
+ alarm(2);
+ ok($testnum,
+ $ooim->box(xmin=>20, ymin=>20, xmax=>80, ymax=>40,
+ fill=>{ fountain=>'linear', xa=>20, ya=>20, xb=>80,
+ yb=>20 }), "linear box fill");
+ ++$testnum;
+ };
+ $@ and ok($testnum++, 0, "linear box fill alarmed");
+}
+
sub ok ($$$) {
my ($num, $test, $desc) = @_;