1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

yes: fix use of deprecated function in test

use wait() instead of wait_with_output()
This commit is contained in:
Daniel Hofstetter 2025-02-23 16:53:46 +01:00
parent 9f643838b8
commit e2412e003a

View file

@ -29,8 +29,7 @@ fn run(args: &[impl AsRef<OsStr>], 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);
}