1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

stdbuf: better handling of the error message when no perm

Tested in tests/misc/stdbuf
This commit is contained in:
Sylvestre Ledru 2025-01-08 00:05:11 +01:00
parent 58f6afdeb4
commit 79645d45ce
2 changed files with 26 additions and 3 deletions

View file

@ -10,6 +10,16 @@ fn invalid_input() {
new_ucmd!().arg("-/").fails().code_is(125);
}
#[test]
fn test_permission() {
new_ucmd!()
.arg("-o1")
.arg(".")
.fails()
.code_is(126)
.stderr_contains("Permission denied");
}
#[cfg(all(not(target_os = "windows"), not(target_os = "openbsd")))]
#[test]
fn test_stdbuf_unbuffered_stdout() {