mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 03:26:18 +00:00
Merge pull request #6090 from sylvestre/csplit2
csplit: adjust the error message to match GNU's
This commit is contained in:
commit
2f4969c0e9
3 changed files with 20 additions and 3 deletions
|
@ -1359,3 +1359,20 @@ fn precision_format() {
|
|||
assert_eq!(at.read("xx 0x001"), generate(10, 51));
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn zero_error() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
at.touch("in");
|
||||
ucmd.args(&["in", "0"])
|
||||
.fails()
|
||||
.stderr_contains("0: line number must be greater");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn no_such_file() {
|
||||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
ucmd.args(&["in", "0"])
|
||||
.fails()
|
||||
.stderr_contains("cannot access 'in': No such file or directory");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue