mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 19:36:16 +00:00
Merge pull request #4672 from sylvestre/dircolors
dircolors: trigger an error when used on /
This commit is contained in:
commit
f82f92ec9f
2 changed files with 25 additions and 4 deletions
|
@ -221,3 +221,13 @@ fn test_helper(file_name: &str, term: &str) {
|
|||
.run()
|
||||
.stdout_is_fixture(format!("{file_name}.sh.expected"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_dircolors_for_dir_as_file() {
|
||||
let result = new_ucmd!().args(&["-c", "/"]).fails();
|
||||
result.no_stdout();
|
||||
assert_eq!(
|
||||
result.stderr_str().trim(),
|
||||
"dircolors: expected file, got directory '/'",
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue