mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #969 from robertclancy/tail-f-dev-stdin-bug
tail: fix bug when following /dev/stdin
This commit is contained in:
commit
14a34b48bf
2 changed files with 20 additions and 19 deletions
|
@ -80,13 +80,7 @@ fn test_follow_multiple() {
|
|||
|
||||
#[test]
|
||||
fn test_follow_stdin() {
|
||||
let (at, mut ucmd) = at_and_ucmd();
|
||||
let mut child = ucmd.arg("-f").pipe_in(at.read(FOOBAR_TXT)).run_no_wait();
|
||||
|
||||
let expected = at.read("follow_stdin.expected");
|
||||
assert_eq!(read_size(&mut child, expected.len()), expected);
|
||||
|
||||
child.kill().unwrap();
|
||||
new_ucmd().arg("-f").pipe_in_fixture(FOOBAR_TXT).run().stdout_is_fixture("follow_stdin.expected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue