mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
tac: Flush BufWriter
This commit is contained in:
parent
d456e90596
commit
11ef1522ca
2 changed files with 12 additions and 0 deletions
|
@ -309,3 +309,13 @@ fn test_regex_before() {
|
|||
// |--------||----||---|
|
||||
.stdout_is("+---+c+d-e+--++b+-+a+");
|
||||
}
|
||||
|
||||
#[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("tac: failed to write to stdout: No space left on device (os error 28)\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue