1
Fork 0
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:
Jeffrey Finkelstein 2021-12-24 13:40:18 -05:00
parent eb87ddbaf7
commit 2aebfc9f8d
2 changed files with 17 additions and 6 deletions

View file

@ -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");
}