From e2412e003a524ad001e6b5d2ac0c65a1fe0f1186 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Sun, 23 Feb 2025 16:53:46 +0100 Subject: [PATCH] yes: fix use of deprecated function in test use wait() instead of wait_with_output() --- tests/by-util/test_yes.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/by-util/test_yes.rs b/tests/by-util/test_yes.rs index f40d6d5b8..3b781ea11 100644 --- a/tests/by-util/test_yes.rs +++ b/tests/by-util/test_yes.rs @@ -29,8 +29,7 @@ fn run(args: &[impl AsRef], expected: &[u8]) { let buf = child.stdout_exact_bytes(expected.len()); child.close_stdout(); - #[allow(deprecated)] - check_termination(child.wait_with_output().unwrap().status); + check_termination(child.wait().unwrap().exit_status()); assert_eq!(buf.as_slice(), expected); }