From 44c59a6d284d3c6829a345fb6058b5383229d6a8 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Fri, 23 Feb 2024 05:40:29 +0100 Subject: [PATCH] numfmt: don't flake even on exotic pipe buffer sizes --- tests/by-util/test_numfmt.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/by-util/test_numfmt.rs b/tests/by-util/test_numfmt.rs index 2c2e95d0b..bb80502d5 100644 --- a/tests/by-util/test_numfmt.rs +++ b/tests/by-util/test_numfmt.rs @@ -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]