1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

sort: ignore broken pipes in a test

Since sort exits early due to the nonexistent file, it might no longer
be around when we try to send it the input.
This is "by design" and can be ignored.
This commit is contained in:
Michael Debertol 2021-08-01 18:02:52 +02:00
parent af47c66a00
commit 450a487d76

View file

@ -1000,6 +1000,7 @@ fn test_verifies_out_file() {
new_ucmd!()
.args(&["-o", "nonexistent_dir/nonexistent_file"])
.pipe_in(input)
.ignore_stdin_write_error()
.fails()
.status_code(2)
.stderr_only(