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

tail: Flush BufWriter

This commit is contained in:
Jan Verbeek 2025-03-31 13:19:55 +02:00
parent 11ef1522ca
commit cf50952325
4 changed files with 17 additions and 7 deletions

View file

@ -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");
}