1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 19:56:17 +00:00

dd: return UResult from uumain() function (#2792)

* dd: return UResult from uumain() function

* fixup! dd: return UResult from uumain() function
This commit is contained in:
jfinkels 2021-12-29 09:13:52 -05:00 committed by GitHub
parent 645eea0c09
commit 3f18b98c9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 84 additions and 93 deletions

View file

@ -262,7 +262,9 @@ fn test_nocreat_causes_failure_when_outfile_not_present() {
ucmd.args(&["conv=nocreat", of!(&fname)])
.pipe_in("")
.fails()
.stderr_is("dd Error: No such file or directory (os error 2)");
.stderr_only(
"dd: failed to open 'this-file-does-not-exist.txt': No such file or directory",
);
assert!(!fix.file_exists(fname));
}