mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
tail: Tweak follow_rename test case
Add a brief sleep to give tail time to start following the file before we rename it. MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D52887
This commit is contained in:
parent
b2efd602ae
commit
a9c72543d2
1 changed files with 2 additions and 0 deletions
|
|
@ -341,6 +341,7 @@ follow_create_body()
|
|||
rm -f infile
|
||||
tail -F infile > outfile &
|
||||
pid=$!
|
||||
sleep 0.1
|
||||
seq 1 5 >infile
|
||||
sleep 2
|
||||
atf_check cmp infile outfile
|
||||
|
|
@ -360,6 +361,7 @@ follow_rename_body()
|
|||
seq 1 3 > infile
|
||||
tail -F infile > outfile &
|
||||
pid=$!
|
||||
sleep 0.1
|
||||
seq 4 5 > infile_new
|
||||
atf_check mv infile infile_old
|
||||
atf_check mv infile_new infile
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue