mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
numfmt: don't flake even on exotic pipe buffer sizes
This commit is contained in:
parent
bcd2d888a1
commit
44c59a6d28
1 changed files with 6 additions and 1 deletions
|
@ -666,7 +666,12 @@ fn test_invalid_stdin_number_returns_status_2() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_invalid_stdin_number_in_middle_of_input() {
|
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]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue