]> sipb.mit.edu Git - ikiwiki.git/blobdiff - t/img.t
changelog, close bugs
[ikiwiki.git] / t / img.t
diff --git a/t/img.t b/t/img.t
index 088a98328861fcb77fd15431cec1b4cc340c20e3..9a48cb1c55ac94dfb8023f9730801c71d217e367 100755 (executable)
--- 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");