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

tee: fail test if string setup fails

This commit is contained in:
Ben Wiederhake 2024-02-23 05:14:29 +01:00
parent 69ea02d9b0
commit 868600cac9

View file

@ -77,7 +77,7 @@ fn test_tee_no_more_writeable_1() {
// equals to 'tee /dev/full out2 <multi_read' call // equals to 'tee /dev/full out2 <multi_read' call
let (at, mut ucmd) = at_and_ucmd!(); let (at, mut ucmd) = at_and_ucmd!();
let content = (1..=10).fold(String::new(), |mut output, x| { let content = (1..=10).fold(String::new(), |mut output, x| {
let _ = writeln!(output, "{x}"); writeln!(output, "{x}").unwrap();
output output
}); });
let file_out = "tee_file_out"; let file_out = "tee_file_out";