gawk: remove load-sensitive tests
PATCH 1/1 gawk: remove load-sensitive tests
The time and timeout tests are sensitive to system load, and as we run these on build machines they fail randomly.
[ YOCTO #14371 ]
Signed-off-by Ross Burton <[email protected]>
--- .../gawk/gawk/test-time.patch | 22 ------------------- meta/recipes-extended/gawk/gawk_5.1.1.bb | 6 ++++- 2 files changed, 5 insertions(+), 23 deletions(-) delete mode 100644 meta/recipes-extended/gawk/gawk/test-time.patch
meta/recipes-extended/gawk/gawk/test-time.patch deleted +0 -22
@@ -1,22 +0,0 @@ -The test time.awk does a sleep() and checks that the real sleep duration is -close to the expected duration. - -As currently our tests can run on a heavily loaded system, increase the range of -a passing duration. - -Upstream-Status: Inappropriate -Signed-off-by: Ross Burton <[email protected]> - -diff --git a/test/time.awk b/test/time.awk -index 517377e2..ca81d92d 100644 ---- a/test/time.awk -+++ b/test/time.awk -@@ -16,7 +16,7 @@ BEGIN { - printf "sleep(%s) = %s\n",delta,sleep(delta) - t1 = timecheck() - slept = t1-t0 -- if ((slept < 0.9*delta) || (slept > 1.3*delta)) -+ if ((slept < 0.5*delta) || (slept > 2*delta)) - printf "Warning: tried to sleep %.2f secs, but slept for %.2f secs\n", - delta,slept - }
meta/recipes-extended/gawk/gawk_5.1.1.bb +5 -1
@@ -17,7 +17,6 @@ PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr" SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ file://run-ptest \ - file://test-time.patch \ " SRC_URI[sha256sum] = "6168d8d1dc8f74bd17d9dc22fa9634c49070f232343b744901da15fb4f06bffd"
@@ -48,6 +47,11 @@ do_install_ptest() { -e 's|#!${base_bindir}/awk|#!${bindir}/awk|g' ${D}${PTEST_PATH}/test/*.awk sed -i -e "s|GAWKLOCALE|LANG|g" ${D}${PTEST_PATH}/test/Maketests + + # These tests require an unloaded host as otherwise timing sensitive tests can fail + # https://bugzilla.yoctoproject.org/show_bug.cgi?id=14371 + rm -f ${D}${PTEST_PATH}/test/time.* + rm -f ${D}${PTEST_PATH}/test/timeout.* } RDEPENDS:${PN}-ptest += "make"
Signature · 1 line
2.25.1