diff options
Diffstat (limited to 'tests/by-util/test_ls.rs')
-rw-r--r-- | tests/by-util/test_ls.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/by-util/test_ls.rs b/tests/by-util/test_ls.rs index 0e817511f..c9f43028c 100644 --- a/tests/by-util/test_ls.rs +++ b/tests/by-util/test_ls.rs @@ -3865,6 +3865,16 @@ fn test_posixly_correct() { } #[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!()); let at = &scene.fixtures; |