mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests: Adjust some tests to use improved UChild. test_tac: Ignore pipe tests on windows.
Summary: * Disable test_retry6 on android because of intermittent failures * Use wait() instead of wait_with_output in test_cat, test_cp, test_sort * tests/sort: Simplify usage of test_sigpipe_panic * Fix tests in test_tee. tests/tac: There was a change in the `tests/common/util.rs` test api concerning piped input which may have revealed a bug in the implementation of tac. Please see also https://github.com/uutils/coreutils/pull/4136
This commit is contained in:
parent
4f54eedb74
commit
4a2ced5940
7 changed files with 40 additions and 17 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue