gioser

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

TOML 911Rust 57Shell 37Markdown 321282 Definiciones

⎇ 78fc56b266e39f8995eb0014d387cdbc02cd1421 recipes/incoming-clib/flaky-tests.patch 83 líneas · 2.5 KB Historia crudo

Etapa G: siembra 24 libs C de toolkit en incoming-clib (zlib/freetype/fontconfig/harfbuzz/cairo/pango/glib/...) — llenador de horas + ladrillos GUI 031535823 · sergio ·

1https://gitlab.gnome.org/GNOME/glib/-/issues/3318
2https://gitlab.gnome.org/GNOME/glib/-/issues/3320
3
4diff --git a/glib/tests/meson.build b/glib/tests/meson.build
5index 85f40d2e1..059a786d3 100644
6--- a/glib/tests/meson.build
7+++ b/glib/tests/meson.build
8@@ -54,6 +54,7 @@ glib_tests = {
9   'gwakeup' : {
10     'source' : ['gwakeuptest.c', '../gwakeup.c'],
11     'install' : false,
12+    'can_fail': host_machine.cpu_family() == 's390x',
13   },
14   'hash' : {},
15   'hmac' : {},
16@@ -226,6 +227,7 @@ if glib_conf.has('HAVE_EVENTFD')
17       'source' : ['gwakeuptest.c', '../gwakeup.c'],
18       'c_args' : ['-DTEST_EVENTFD_FALLBACK'],
19       'install' : false,
20+      'can_fail': host_machine.cpu_family() == 's390x',
21     },
22   }
23 endif
24diff --git a/gobject/tests/meson.build b/gobject/tests/meson.build
25index a163e5f91..12c449519 100644
26--- a/gobject/tests/meson.build
27+++ b/gobject/tests/meson.build
28@@ -78,7 +78,7 @@ gobject_tests = {
29   'references' : {},
30   'basic-signals' : {},
31   'singleton' : {},
32-  'threadtests' : {},
33+  'threadtests' : { 'can_fail': 'aarch64' in host_machine.cpu_family() or 'riscv' in host_machine.cpu_family() },
34   'dynamictests' : {},
35   'binding' : {},
36   'bindinggroup' : {},
37From ad2925ef361a7c889ff696a1ba9e677accaecd08 Mon Sep 17 00:00:00 2001
38From: Natanael Copa <ncopa@alpinelinux.org>
39Date: Thu, 4 Apr 2024 10:15:07 +0200
40Subject: [PATCH] tests: increase timeout on slow architectures
41
42Prevent tests to timeout on architectures that are slow.
43
44Fixes https://gitlab.gnome.org/GNOME/glib/-/issues/3319
45
46Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
47---
48 meson.build | 6 ++++++
49 1 file changed, 6 insertions(+)
50
51diff --git a/meson.build b/meson.build
52index f0c5e070b..4c6c87766 100644
53--- a/meson.build
54+++ b/meson.build
55@@ -182,6 +182,12 @@ test_protocol = 'tap'
56 test_timeout = 30
57 test_timeout_slow = 90
58 
59+# give more time on slow architectures
60+if 'riscv' in host_machine.cpu_family()
61+  test_timeout = test_timeout * 4
62+  test_timeout_slow = test_timeout_slow * 4
63+endif
64+
65 add_test_setup('default',
66   is_default: true,
67   exclude_suites: ['flaky', 'failing'],
68-- 
692.44.0
70
71diff --git a/glib/tests/meson.build b/glib/tests/meson.build
72index 85f40d2e1..f2ee59678 100644
73--- a/glib/tests/meson.build
74+++ b/glib/tests/meson.build
75@@ -113,6 +113,8 @@ glib_tests = {
76   'regex' : {
77     'dependencies' : [pcre2],
78     'c_args' : use_pcre2_static_flag ? ['-DPCRE2_STATIC'] : [],
79+    # https://gitlab.gnome.org/GNOME/glib/-/issues/3321
80+    'can_fail': host_machine.cpu_family() == 'riscv64',
81   },
82   'relation' : {},
83   'rwlock' : {},