1
Fork 0
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:
Jeffrey Finkelstein 2021-05-21 18:20:05 -04:00 committed by Jan Scheer
parent 17b0939dee
commit 4e73b919e9

View file

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