9 # as a TIFF this file is large, build it from largeish.jpg if it
11 unless (-f "bench/largish.tif") {
12 my $im = Imager->new(file => "bench/largish.jpg")
13 or die "Cannot read bench/largish.jpg:", Imager->errstr;
14 $im->write(file => "bench/largish.tif")
15 or die "Cannot write bench.largish.tif:", $im->errstr;
20 [ "bench/largish.tif", "" ],
21 [ "TIFF/testimg/grey16.tif", "" ],
22 [ "TIFF/testimg/comp4bad.tif", "(Iolayer): Read error at scanline 120; got 0 bytes, expected 32" ],
27 for my $test (@tests) {
32 my ($file, $result, $name) = @_;
35 my $im = Imager->new(file => $file);
37 $im and die "Expected error from $file, got image";
38 Imager->errstr eq $result
39 or die "Expected error '$result', got '",Imager->errstr, "'"
42 $im or die "Expected image got error '", Imager->errstr, "'";
53 for my $t (@threads) {