summaryrefslogtreecommitdiffstats
path: root/tests/by-util/test_ls.rs
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2023-12-11 07:49:38 +0100
committerGitHub <noreply@github.com>2023-12-11 07:49:38 +0100
commit4442b353706cd2eef2fd77eb6e8cb464592055de (patch)
treef86b10e9345801c70bf073b1786750f4fcb03703 /tests/by-util/test_ls.rs
parent62afd786f6790965f58fd531af33c49410242961 (diff)
parente9dc2930ee8260b3c3f7863ade3426239eb0332f (diff)
Merge pull request #5626 from cakebaker/ls_invalid_block_size
ls: handle invalid block size as GNU does
Diffstat (limited to 'tests/by-util/test_ls.rs')
-rw-r--r--tests/by-util/test_ls.rs10
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;