mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-05 16:19:23 +02:00
tests: ls: check that an invalid --tabsize is diagnosed
* tests/ls/ls-misc.pl: Add tests, generated by a loop over invalid values, verifying that a negative (-9), non-numeric (zz), or fractional (0.5) --tabsize argument is rejected with "invalid tab size" and exit status 2. https://github.com/uutils/coreutils/pull/13278 Link: https://github.com/coreutils/coreutils/pull/311
This commit is contained in:
committed by
Pádraig Brady
parent
165b62de80
commit
440fe62502
@@ -349,6 +349,12 @@ my @Tests =
|
||||
$rmdir_reg,
|
||||
{EXIT => 2},
|
||||
],
|
||||
|
||||
# Negative, non-numeric and fractional --tabsize values are invalid.
|
||||
(map { ["tabsize-invalid-$_", "--tabsize=$_",
|
||||
{ERR => "$prog: invalid tab size: '$_'\n"},
|
||||
{EXIT => 2},
|
||||
] } qw(-9 zz 0.5)),
|
||||
);
|
||||
|
||||
umask 022;
|
||||
|
||||
Reference in New Issue
Block a user