[glib/wip/ebassi/ci: 1/2] Increase the timeout for some GLib tests
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/ebassi/ci: 1/2] Increase the timeout for some GLib tests
- Date: Mon, 19 Feb 2018 15:40:06 +0000 (UTC)
commit 9913c620733b7d0a2fe44aac30a017f3fb834c14
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Feb 19 15:35:17 2018 +0000
Increase the timeout for some GLib tests
The CI infrastructure is shared and running inside a containerised
environment, which means tests may take more time to finish on it
than they would on a faster, personal machine.
glib/tests/meson.build | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/meson.build b/glib/tests/meson.build
index a78d9c057..ed8dd2297 100644
--- a/glib/tests/meson.build
+++ b/glib/tests/meson.build
@@ -98,6 +98,12 @@ test_env = [
test_cargs = ['-DHAVE_CONFIG_H=1', '-DG_LOG_DOMAIN="GLib"']
+# Tests that consistently time out on the CI infrastructure
+slow_tests = [
+ 'sequence',
+ '642026',
+]
+
foreach test_name : glib_tests
deps = [libm, thread_dep, libglib_dep]
if test_name == 'regex'
@@ -108,7 +114,12 @@ foreach test_name : glib_tests
dependencies : deps,
install : false,
)
- test(test_name, exe, env : test_env)
+ # These tests may take more than 30 seconds to run on the CI infrastructure
+ if slow_tests.contains(test_name)
+ test(test_name, exe, env : test_env, timeout : 45)
+ else
+ test(test_name, exe, env : test_env)
+ endif
endforeach
c_args_atomic = []
@@ -137,7 +148,7 @@ exe = executable('642026-ec', '642026.c',
dependencies : deps,
install : false,
)
-test('642026-ec', exe, env : test_env)
+test('642026-ec', exe, env : test_env, timeout : 45)
exe = executable('1bit-emufutex', '1bit-mutex.c',
c_args : test_cargs + ['-DTEST_EMULATED_FUTEX'],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]