glib-2.0: skip a timing sensitive ptest

The /timeout/rounding test is sensitive to system load, as it expects
timeouts to trigger in windows that on an idle system are realistic but
not when running inside a qemu-system on a loaded system.

[ YOCTO #14464 ]

(From OE-Core rev: 684ac8005aef8ab26e61e6e7535e19c9974972d3)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2024-03-28 16:44:23 +00:00
committed by Richard Purdie
parent 863a7dd585
commit 91d11b3ad8
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
From bb11d1a4ae77d93ec0743e54077cf0f990243fa6 Mon Sep 17 00:00:00 2001
From: Ross Burton <ross.burton@arm.com>
Date: Thu, 28 Mar 2024 16:27:09 +0000
Subject: [PATCH] Skip /timeout/rounding test
This test is sensitive to load because it expects certain timeout operations
to succeed in specific time periods. Whilst these timeouts are fairly large,
they're still exceeded inside a qemu on a loaded system.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14464
Upstream-Status: Inappropriate [OE-specific]
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
glib/tests/timeout.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/glib/tests/timeout.c b/glib/tests/timeout.c
index 1ae3f3a34..85a715b0f 100644
--- a/glib/tests/timeout.c
+++ b/glib/tests/timeout.c
@@ -214,7 +214,6 @@ main (int argc, char *argv[])
g_test_add_func ("/timeout/seconds-once", test_seconds_once);
g_test_add_func ("/timeout/weeks-overflow", test_weeks_overflow);
g_test_add_func ("/timeout/far-future-ready-time", test_far_future_ready_time);
- g_test_add_func ("/timeout/rounding", test_rounding);
return g_test_run ();
}
--
2.34.1

View File

@@ -17,6 +17,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
file://0001-Switch-from-the-deprecated-distutils-module-to-the-p.patch \
file://memory-monitor.patch \
file://fix-regex.patch \
file://skip-timeout.patch \
"
SRC_URI:append:class-native = " file://relocate-modules.patch \
file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \