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:
Pádraig Brady committed 2022-04-12 13:30:50 +01:00
1 parent 2122ceba8e
commit 028cad9149
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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};