mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
truncate: add test for -r and -s options together
Add a test for when the reference file is not found and both `-r` and `-s` options are given on the command-line.
This commit is contained in:
parent
17b0939dee
commit
4e73b919e9
1 changed files with 8 additions and 0 deletions
|
@ -262,3 +262,11 @@ fn test_reference_file_not_found() {
|
||||||
.fails()
|
.fails()
|
||||||
.stderr_contains("cannot stat 'a': No such file or directory");
|
.stderr_contains("cannot stat 'a': No such file or directory");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_reference_with_size_file_not_found() {
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["-r", "a", "-s", "+1", "b"])
|
||||||
|
.fails()
|
||||||
|
.stderr_contains("cannot stat 'a': No such file or directory");
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue