mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests/util: Use Stdio::null as default in UCommand for Child stdin instead of Stdio::piped
This commit is contained in:
parent
c2e4da97da
commit
9b35c5d5c1
4 changed files with 32 additions and 10 deletions
|
@ -351,7 +351,11 @@ fn test_follow_stdin_descriptor() {
|
|||
|
||||
let mut args = vec!["-f", "-"];
|
||||
for _ in 0..2 {
|
||||
let mut p = ts.ucmd().args(&args).run_no_wait();
|
||||
let mut p = ts
|
||||
.ucmd()
|
||||
.set_stdin(Stdio::piped())
|
||||
.args(&args)
|
||||
.run_no_wait();
|
||||
p.make_assertion_with_delay(500).is_alive();
|
||||
p.kill()
|
||||
.make_assertion()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue