Skip to content

Commit

Permalink
read the test file in binary mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Cook committed Aug 6, 2010
1 parent fb9fb81 commit 8c7b502
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/t104ppm.t
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ print "# check error handling\n";
{
ok(open(FH, "< testimg/penguin-base.ppm"), "open test file")
or skip("couldn't open data source", 4);
binmode FH;
my $imdata = do { local $/; <FH> };
close FH;
ok(length $imdata, "we got the data");
Expand Down

0 comments on commit 8c7b502

Please sign in to comment.