summaryrefslogtreecommitdiff
path: root/ext/Digest/MD5
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-06-10 23:24:42 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-10 23:24:42 +0000
commitcb3fb9b75cd1198d350357a3c5e4acd60bf2ecbf (patch)
treefbedf74a5aad4c7d7bb0833776bbe9ece458a6e0 /ext/Digest/MD5
parent1ddff52a1281532cbd0c62e75300cd5f2fb50094 (diff)
downloadperl-cb3fb9b75cd1198d350357a3c5e4acd60bf2ecbf.tar.gz
Now that binmode(FH) does implicit ":bytes" revisit
the failing tests. The worrisome one is the Digest::MD5 test-- how will it fare in CRLF lands now? p4raw-id: //depot/perl@17175
Diffstat (limited to 'ext/Digest/MD5')
-rw-r--r--ext/Digest/MD5/t/files.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/Digest/MD5/t/files.t b/ext/Digest/MD5/t/files.t
index 34ef9e0dea..b49149ccb9 100644
--- a/ext/Digest/MD5/t/files.t
+++ b/ext/Digest/MD5/t/files.t
@@ -175,7 +175,6 @@ sub digest_file
#print "$file $method\n";
open(FILE, $file) or die "Can't open $file: $!";
- eval { binmode(FILE, ":bytes") }; # Perl 5.8.0+ only
my $digest = Digest::MD5->new->addfile(*FILE)->$method();
close(FILE);
@@ -187,7 +186,7 @@ sub cat_file
my($file) = @_;
local $/; # slurp
open(FILE, $file) or die "Can't open $file: $!";
- eval { binmode(FILE, ":bytes") }; # Perl 5.8.0+ only
+ binmode(FILE);
my $tmp = <FILE>;
close(FILE);
$tmp;