mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
yes: fix use of deprecated function in test
use wait() instead of wait_with_output()
This commit is contained in:
parent
9f643838b8
commit
e2412e003a
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue