summaryrefslogtreecommitdiff
path: root/tests/misc/sha1sum.pl
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-10-26 01:26:04 +0000
committerPádraig Brady <P@draigBrady.com>2015-10-27 13:20:50 +0000
commit106d4bf159a97b573d6479473fa38216fb8bfada (patch)
treedf625291cacb7341dd291f3edc87907ba83e655c /tests/misc/sha1sum.pl
parente71be1292b92b244d065873fae5a17d5e1f0a16c (diff)
downloadcoreutils-106d4bf159a97b573d6479473fa38216fb8bfada.tar.xz
md5sum: quote all printed file names
This is especially significant when using --check with files generated on a windows system, where the \r characters produce corrupted and confusing error messages. This also ensures status messages are output on a single line. * src/md5sum.c: Use quote() for printed file names. * tests/misc/md5sum.pl: Adjust accordingly. * NEWS: Mention the change in behavior. Fixes http://bugs.gnu.org/21757
Diffstat (limited to 'tests/misc/sha1sum.pl')
-rwxr-xr-xtests/misc/sha1sum.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/misc/sha1sum.pl b/tests/misc/sha1sum.pl
index de923b636..0c22e7a18 100755
--- a/tests/misc/sha1sum.pl
+++ b/tests/misc/sha1sum.pl
@@ -53,29 +53,29 @@ my @Tests =
# md5sum accept BSD format.
['check-bsd', '--check', {IN=> {'f.md5' => "MD5 (f) = $sha_degenerate\n"}},
{AUX=> {f=> ''}},
- {ERR=>"sha1sum: f.md5: no properly formatted "
+ {ERR=>"sha1sum: 'f.md5': no properly formatted "
. "SHA1 checksum lines found\n"},
{EXIT=> 1}],
['check-bsd2', '--check',
{IN=> {'f.sha1' => "SHA1 (f) = $sha_degenerate\n"}},
- {AUX=> {f=> ''}}, {OUT=>"f: OK\n"}],
+ {AUX=> {f=> ''}}, {OUT=>"'f': OK\n"}],
['check-bsd3', '--check', '--status',
{IN=> {'f.sha1' => "SHA1 (f) = $sha_degenerate\n"}},
{AUX=> {f=> 'bar'}}, {EXIT=> 1}],
['check-openssl', '--check',
{IN=> {'f.md5' => "MD5(f)= $sha_degenerate\n"}},
{AUX=> {f=> ''}},
- {ERR=>"sha1sum: f.md5: no properly formatted "
+ {ERR=>"sha1sum: 'f.md5': no properly formatted "
. "SHA1 checksum lines found\n"},
{EXIT=> 1}],
['check-openssl2', '--check',
{IN=> {'f.sha1' => "SHA1(f)= $sha_degenerate\n"}},
- {AUX=> {f=> ''}}, {OUT=>"f: OK\n"}],
+ {AUX=> {f=> ''}}, {OUT=>"'f': OK\n"}],
['check-openssl3', '--check', '--status',
{IN=> {'f.sha1' => "SHA1(f)= $sha_degenerate\n"}},
{AUX=> {f=> 'bar'}}, {EXIT=> 1}],
['bsd-segv', '--check', {IN=> {'z' => "SHA1 ("}}, {EXIT=> 1},
- {ERR=> "$prog: z: no properly formatted SHA1 checksum lines found\n"}],
+ {ERR=> "$prog: 'z': no properly formatted SHA1 checksum lines found\n"}],
);
# Insert the '--text' argument for each test.