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

numfmt: don't flake even on exotic pipe buffer sizes

This commit is contained in:
Ben Wiederhake 2024-02-23 05:40:29 +01:00
parent bcd2d888a1
commit 44c59a6d28

View file

@ -666,7 +666,12 @@ fn test_invalid_stdin_number_returns_status_2() {
#[test]
fn test_invalid_stdin_number_in_middle_of_input() {
new_ucmd!().pipe_in("100\nhello\n200").fails().code_is(2);
new_ucmd!()
.pipe_in("100\nhello\n200")
.ignore_stdin_write_error()
.fails()
.stdout_is("100\n")
.code_is(2);
}
#[test]