mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #7348 from cakebaker/yes_remove_use_of_deprecated_fn_in_test
yes: fix use of deprecated function in test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user