mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
ls: handle invalid block size as GNU does
This commit is contained in:
parent
355b4872b1
commit
e9dc2930ee
2 changed files with 14 additions and 5 deletions
|
@ -3856,6 +3856,16 @@ fn test_posixly_correct() {
|
|||
.stdout_contains_line("total 8");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ls_invalid_block_size() {
|
||||
new_ucmd!()
|
||||
.arg("--block-size=invalid")
|
||||
.fails()
|
||||
.code_is(2)
|
||||
.no_stdout()
|
||||
.stderr_is("ls: invalid --block-size argument 'invalid'\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ls_hyperlink() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue