Commits

Shlomi Fish  committed 36a7cea

The test was wrong - fix it.

  • Participants
  • Parent commits 26b5ad7

Comments (0)

Files changed (1)

File config-inifiles/t/32mswin-outputs-contain-crs.t

     }
 }
 
-sub _slurp
+sub _bin_slurp
 {
     my $filename = shift;
 
     open my $in, '<', $filename
         or die "Cannot open '$filename' for slurping - $!";
 
-    binmode $in, 1;
+    binmode $in;
     local $/;
     my $contents = <$in>;
 
 
 # TEST
 unlike(
-    scalar(_slurp($config_filename)),
+    scalar(_bin_slurp($config_filename)),
     qr/[^\x0D]\x0A/, # \x0D is CR ; \x0A is LF. See "man ascii".
     "Checking that all line feeds are preceded by carriage returns",
 );