1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

stdbuf: better handling when non existing files

Should fix tests/misc/stdbuf
This commit is contained in:
Sylvestre Ledru 2025-01-08 00:11:34 +01:00
parent 79645d45ce
commit 04d4c9e1ef
2 changed files with 30 additions and 12 deletions

View file

@ -20,6 +20,16 @@ fn test_permission() {
.stderr_contains("Permission denied");
}
#[test]
fn test_no_such() {
new_ucmd!()
.arg("-o1")
.arg("no_such")
.fails()
.code_is(127)
.stderr_contains("No such file or directory");
}
#[cfg(all(not(target_os = "windows"), not(target_os = "openbsd")))]
#[test]
fn test_stdbuf_unbuffered_stdout() {