mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27: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
|
@ -484,9 +484,7 @@ fn test_domain_socket() {
|
|||
|
||||
let child = new_ucmd!().args(&[socket_path]).run_no_wait();
|
||||
barrier.wait();
|
||||
let stdout = &child.wait_with_output().unwrap().stdout;
|
||||
let output = String::from_utf8_lossy(stdout);
|
||||
assert_eq!("a\tb", output);
|
||||
child.wait().unwrap().stdout_is("a\tb");
|
||||
|
||||
thread.join().unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue