X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/0f9ea1f720e0899f325ad3a9a923ee2b7bc2a038..70bc1a2113e74d25f9d70d2e6d809565a3e8df06:/t/img.t diff --git a/t/img.t b/t/img.t index 088a98328..9a48cb1c5 100755 --- a/t/img.t +++ b/t/img.t @@ -52,10 +52,7 @@ sub size($) { } my $outpath = "t/tmp/out/imgconversions"; -open (my $outhtmlfd, "<", "$outpath.html"); -local $/=undef; -my $outhtml = <$outhtmlfd>; -close $outhtmlfd; +my $outhtml = readfile("$outpath.html"); is(size("$outpath/10x-redsquare.png"), "10x10"); ok(! -e "$outpath/30x-redsquare.png");