]> code.ossystems Code Review - openembedded-core.git/commit
gawk: reduce strictness of the time test
authorRoss Burton <ross@burtonini.com>
Tue, 19 Oct 2021 11:35:29 +0000 (12:35 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Oct 2021 16:41:46 +0000 (17:41 +0100)
commit92920dd698c5d3a3d8197083f0a1932e7f6550dc
tree22399756c5d9aff95bc99421417fec7fdea68efb
parent18da900ec1b4a9bac2c205145ec2282c52543fd2
gawk: reduce strictness of the time test

The time.awk test does a sleep() and verifies that the actual delay is
close to the requested time. However on a loaded system the range of
acceptable durations is quite tight and will occasionally fail.

Solve this by increasing the range of acceptable delays slightly to
between 50% and 200% of the requested delay.

[ YOCTO #14371 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/gawk/gawk/test-time.patch [new file with mode: 0644]
meta/recipes-extended/gawk/gawk_5.1.0.bb