mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00: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:
commit
8bd9744183
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());
|
let buf = child.stdout_exact_bytes(expected.len());
|
||||||
child.close_stdout();
|
child.close_stdout();
|
||||||
|
|
||||||
#[allow(deprecated)]
|
check_termination(child.wait().unwrap().exit_status());
|
||||||
check_termination(child.wait_with_output().unwrap().status);
|
|
||||||
assert_eq!(buf.as_slice(), expected);
|
assert_eq!(buf.as_slice(), expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue