mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 03:26:18 +00:00
Merge pull request #5909 from cakebaker/split_fix_error_message_if_file_doesnt_exist
split: fix error message shown if file doesn't exist
This commit is contained in:
commit
62a3fb8d3f
2 changed files with 11 additions and 6 deletions
|
@ -123,6 +123,15 @@ fn test_invalid_arg() {
|
|||
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_split_non_existing_file() {
|
||||
new_ucmd!()
|
||||
.arg("non-existing")
|
||||
.fails()
|
||||
.code_is(1)
|
||||
.stderr_is("split: cannot open 'non-existing' for reading: No such file or directory\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_split_default() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue