mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tail: Flush BufWriter
This commit is contained in:
parent
11ef1522ca
commit
cf50952325
4 changed files with 17 additions and 7 deletions
|
@ -4847,3 +4847,13 @@ fn test_child_when_run_with_stderr_to_stdout() {
|
|||
.fails()
|
||||
.stdout_only(expected_stdout);
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[test]
|
||||
fn test_failed_write_is_reported() {
|
||||
new_ucmd!()
|
||||
.pipe_in("hello")
|
||||
.set_stdout(std::fs::File::create("/dev/full").unwrap())
|
||||
.fails()
|
||||
.stderr_is("tail: No space left on device\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue