mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
cut: set exit code to 1 if dir is specified
This commit is contained in:
parent
5bd00eb791
commit
c8cd355708
2 changed files with 6 additions and 3 deletions
|
@ -219,7 +219,8 @@ fn test_is_a_directory() {
|
|||
|
||||
ucmd.arg("-b1")
|
||||
.arg("some")
|
||||
.run()
|
||||
.fails()
|
||||
.code_is(1)
|
||||
.stderr_is("cut: some: Is a directory\n");
|
||||
}
|
||||
|
||||
|
@ -228,7 +229,8 @@ fn test_no_such_file() {
|
|||
new_ucmd!()
|
||||
.arg("-b1")
|
||||
.arg("some")
|
||||
.run()
|
||||
.fails()
|
||||
.code_is(1)
|
||||
.stderr_is("cut: some: No such file or directory\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue