git: a9c72543d287 - main - tail: Tweak follow_rename test case
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Oct 2025 16:24:08 UTC
The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=a9c72543d287afa8dd30bec0f49873e88057c192 commit a9c72543d287afa8dd30bec0f49873e88057c192 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2025-10-07 16:23:18 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2025-10-07 16:23:57 +0000 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 --- usr.bin/tail/tests/tail_test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/tail/tests/tail_test.sh b/usr.bin/tail/tests/tail_test.sh index 74d6908f7568..82c74a0d4da4 100755 --- a/usr.bin/tail/tests/tail_test.sh +++ b/usr.bin/tail/tests/tail_test.sh @@ -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