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

Merge pull request #4136 from Joining7943/tail-test-runner

`tests/common/util`: Implement UChild, an abstraction for std::process::Child, to return UChild from run_no_wait instead
This commit is contained in:
Sylvestre Ledru 2022-12-03 10:18:25 +01:00 committed by GitHub
commit 75502aba93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 1441 additions and 531 deletions

View file

@ -2330,10 +2330,7 @@ fn test_copy_contents_fifo() {
// At this point the child process should have terminated
// successfully with no output. The `outfile` should have the
// contents of `fifo` copied into it.
let output = child.wait_with_output().unwrap();
assert!(output.status.success());
assert!(output.stdout.is_empty());
assert!(output.stderr.is_empty());
child.wait().unwrap().no_stdout().no_stderr().success();
assert_eq!(at.read("outfile"), "foo");
}