6 $Imager::formats{"tiff"}
7 and plan skip_all => "tiff support available - this tests the lack of it";
13 ok(!$im->read(file=>"TIFF/testimg/comp4.tif"), "should fail to read tif");
14 cmp_ok($im->errstr, '=~', "format 'tiff' not supported",
15 "check no tiff message");
17 ok(!$im->read_multi(file => "TIFF/testimg/comp4.tif"),
18 "should fail to read multi tiff");
19 cmp_ok($im->errstr, '=~', "format 'tiff' not supported",
20 "check no tiff message");
22 $im = Imager->new(xsize=>2, ysize=>2);
24 ok(!$im->write(file=>"testout/notiff.tif"), "should fail to write tiff");
25 cmp_ok($im->errstr, '=~', "format 'tiff' not supported",
26 "check no tiff message");
27 ok(!-e "testout/notiff.tif", "file shouldn't be created");
29 ok(!Imager->write_multi({file=>"testout/notiff.tif"}, $im, $im),
30 "should fail to write multi tiff");
31 cmp_ok($im->errstr, '=~', "format 'tiff' not supported",
32 "check no tiff message");
33 ok(!-e "testout/notiff.tif", "file shouldn't be created");
35 ok(!grep($_ eq 'tiff', Imager->read_types), "check tiff not in read types");
36 ok(!grep($_ eq 'tiff', Imager->write_types), "check tiff not in write types");