mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 20:33:08 +02:00
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. https://bugzilla.gnome.org/show_bug.cgi?id=793635
This commit is contained in:
parent
5459b345e1
commit
8bfedb57cc
@ -98,6 +98,13 @@ test_env = [
|
|||||||
|
|
||||||
test_cargs = ['-DHAVE_CONFIG_H=1', '-DG_LOG_DOMAIN="GLib"']
|
test_cargs = ['-DHAVE_CONFIG_H=1', '-DG_LOG_DOMAIN="GLib"']
|
||||||
|
|
||||||
|
# Tests that consistently time out on the CI infrastructure
|
||||||
|
slow_tests = [
|
||||||
|
'gvariant',
|
||||||
|
'sequence',
|
||||||
|
'642026',
|
||||||
|
]
|
||||||
|
|
||||||
foreach test_name : glib_tests
|
foreach test_name : glib_tests
|
||||||
deps = [libm, thread_dep, libglib_dep]
|
deps = [libm, thread_dep, libglib_dep]
|
||||||
if test_name == 'regex'
|
if test_name == 'regex'
|
||||||
@ -108,7 +115,12 @@ foreach test_name : glib_tests
|
|||||||
dependencies : deps,
|
dependencies : deps,
|
||||||
install : false,
|
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 : 90)
|
||||||
|
else
|
||||||
|
test(test_name, exe, env : test_env)
|
||||||
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
c_args_atomic = []
|
c_args_atomic = []
|
||||||
@ -137,7 +149,7 @@ exe = executable('642026-ec', '642026.c',
|
|||||||
dependencies : deps,
|
dependencies : deps,
|
||||||
install : false,
|
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',
|
exe = executable('1bit-emufutex', '1bit-mutex.c',
|
||||||
c_args : test_cargs + ['-DTEST_EMULATED_FUTEX'],
|
c_args : test_cargs + ['-DTEST_EMULATED_FUTEX'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user