Skip to content

tests: ls: check that an invalid --tabsize is diagnosed#311

Closed
sylvestre wants to merge 1 commit into
coreutils:masterfrom
sylvestre:ls-invalid-tabsize-test
Closed

tests: ls: check that an invalid --tabsize is diagnosed#311
sylvestre wants to merge 1 commit into
coreutils:masterfrom
sylvestre:ls-invalid-tabsize-test

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

@Devel08 Devel08 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can also check for a floating point, as GNU ls rejects that too, something like

     # A floating point --tabsize is not a valid width.
     ['tabsize-floating-point', '--tabsize=0.5',
      {ERR => "$prog: invalid tab size: '0.5'\n"},
      {EXIT => 2},
     ],

* 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.
uutils/coreutils#13278
@sylvestre sylvestre force-pushed the ls-invalid-tabsize-test branch from d365754 to 011aeb2 Compare July 5, 2026 15:07
@pixelb pixelb closed this Jul 6, 2026
hubot pushed a commit that referenced this pull request Jul 6, 2026
* 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.
uutils/coreutils#13278

Link: #311
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants