mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
stdbuf: better handling of the error message when no perm
Tested in tests/misc/stdbuf
This commit is contained in:
parent
58f6afdeb4
commit
79645d45ce
2 changed files with 26 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue