Subject: | t/10_md5sum.t fails on (Free)BSD systems |
$ perl5.16.3t -Mblib t/10_md5sum.t
1..2
ok 1 - md5 2b00042f7481c7b056c4b410d28f33cf
not ok 2 -
# Failed test ''
# at t/10_md5sum.t line 9.
# Looks like you failed 1 test of 2.
(Probably you should use is() and like() for better diagnostics here)
Possible reason -> you expect an error when reading from a directory. But this is possible on BSD systems:
$ perl -e 'open my $fh, "." or die $!; my $buf = <$fh>; warn length $buf'
248 at -e line 1, <$fh> line 1.
So there's no error here while calling md5sum(), and the test fails.