mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-07-26 02:30:35 +02:00
tests: md5sum: fix false failures on cygwin
* tests/misc/md5sum-newline.pl: Avoid binary '*' tags when comparing checksums. * tests/misc/md5sum-bsd.sh: Avoid binary '*' tags so that we correctly trigger the ambiguity test. Reported by Bruno Haible
This commit is contained in:
@@ -28,7 +28,7 @@ print_ver_ md5sum
|
||||
# I.e., one not starting with ' ' or '*'
|
||||
for i in 'a' ' b' '*c' 'dd' ' '; do
|
||||
echo "$i" > "$i"
|
||||
md5sum "$i" >> check.md5sum || fail=1
|
||||
md5sum --text "$i" >> check.md5sum || fail=1
|
||||
done
|
||||
sed 's/ / /' check.md5sum > check.md5
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ my $z = '--zero';
|
||||
my @Tests =
|
||||
(
|
||||
['newline', $t, {IN=> {"a\nb"=> ''}}, {OUT=>"\\$degenerate a\\nb\n"}],
|
||||
['zero', $z, {IN=> {"a\nb"=> ''}}, {OUT=>"$degenerate a\nb\0"}],
|
||||
['zero', "$t $z", {IN=> {"a\nb"=> ''}}, {OUT=>"$degenerate a\nb\0"}],
|
||||
);
|
||||
|
||||
my $save_temps = $ENV{DEBUG};
|
||||
|
||||
Reference in New Issue
Block a user