mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
comm: return UResult from uumain() function
This commit is contained in:
parent
eb87ddbaf7
commit
2aebfc9f8d
2 changed files with 17 additions and 6 deletions
|
@ -170,3 +170,11 @@ fn no_arguments() {
|
|||
fn one_argument() {
|
||||
new_ucmd!().arg("a").fails().no_stdout().no_stderr();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_no_such_file() {
|
||||
new_ucmd!()
|
||||
.args(&["bogus_file_1", "bogus_file_2"])
|
||||
.fails()
|
||||
.stderr_only("comm: bogus_file_1: No such file or directory");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue