Skip to content

Commit

Permalink
test(ls): Add test for #6554
Browse files Browse the repository at this point in the history
  • Loading branch information
RenjiSann authored and sylvestre committed Jul 18, 2024
1 parent 571828a commit b3b8504
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/by-util/test_ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2197,6 +2197,18 @@ fn test_ls_recursive_1() {
.stdout_is(out);
}

#[test]
fn test_ls_recursive_escape_dirname() {
let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;
at.mkdir("dir:name");
at.mkdir("dirname2");

let out = ".:\ndir:name\ndirname2\n\n'./dir:name':\n\n./dirname2:\n";

scene.ucmd().arg("-R").succeeds().stdout_is(out);
}

#[test]
fn test_ls_color() {
let scene = TestScenario::new(util_name!());
Expand Down

0 comments on commit b3b8504

Please sign in to comment.