From 450a487d763b299856a1d8ff4dfb2a753c6ec711 Mon Sep 17 00:00:00 2001 From: Michael Debertol Date: Sun, 1 Aug 2021 18:02:52 +0200 Subject: [PATCH] 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. --- tests/by-util/test_sort.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/by-util/test_sort.rs b/tests/by-util/test_sort.rs index cac9a5a5d..1f21722ed 100644 --- a/tests/by-util/test_sort.rs +++ b/tests/by-util/test_sort.rs @@ -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(