mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
test_dircolors: add test_extra_operand
This commit is contained in:
parent
f1b38e94cd
commit
18bfc03008
1 changed files with 9 additions and 0 deletions
|
@ -141,6 +141,15 @@ fn test_stdin() {
|
||||||
.no_stderr();
|
.no_stderr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_extra_operand() {
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["-c", "file1", "file2"])
|
||||||
|
.fails()
|
||||||
|
.stderr_contains("dircolors: extra operand 'file2'\n")
|
||||||
|
.no_stdout();
|
||||||
|
}
|
||||||
|
|
||||||
fn test_helper(file_name: &str, term: &str) {
|
fn test_helper(file_name: &str, term: &str) {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.env("TERM", term)
|
.env("TERM", term)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue