Merge branch '2-58-test-timeout' into 'glib-2-58'

[2.58] meson: Increase test timeouts

See merge request GNOME/glib!445
This commit is contained in:
Philip Withnall 2018-11-02 10:43:52 +00:00
commit 7aa52a7d53
7 changed files with 11 additions and 7 deletions

View File

@ -484,7 +484,7 @@ foreach test_dict : gio_tests
)
suite = ['gio'] + extra_args.get('suite', [])
timeout = suite.contains('slow') ? 120 : 30
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
test(test_name, exe,
env : test_env,
timeout : timeout,

View File

@ -23,7 +23,9 @@ glib_tests = {
'environment' : {},
'error' : {},
'fileutils' : {},
'gdatetime' : {},
'gdatetime' : {
'suite' : ['slow'],
},
'guuid' : {},
'gvariant' : {
'suite' : ['slow'],
@ -186,7 +188,7 @@ foreach test_name, extra_args : glib_tests
)
suite = ['glib'] + extra_args.get('suite', [])
timeout = suite.contains('slow') ? 120 : 30
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
test(test_name, exe, env : test_env, timeout : timeout, suite : suite,
args : ['--tap'])
endif

View File

@ -89,7 +89,7 @@ foreach test_name, extra_args : gobject_tests
)
suite = ['gobject'] + extra_args.get('suite', [])
timeout = suite.contains('slow') ? 120 : 30
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
test(test_name, exe, env : test_env, timeout : timeout, suite : suite,
args: ['--tap'])
endforeach

View File

@ -1962,6 +1962,8 @@ if want_systemtap and enable_dtrace
enable_systemtap = true
endif
test_timeout = 60
test_timeout_slow = 120
pkg = import('pkgconfig')
windows = import('windows')

View File

@ -86,7 +86,7 @@ foreach test_dict : gobject_tests
)
suite = ['gobject'] + extra_args.get('suite', [])
timeout = suite.contains('slow') ? 120 : 30
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
# FIXME? TESTS_ENVIRONMENT = LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset
test(test_name, exe, env : test_env, timeout : timeout, suite : suite,
args : test_command_args)

View File

@ -127,7 +127,7 @@ foreach test_dict : tests
)
suite = ['glib'] + extra_args.get('suite', [])
timeout = suite.contains('slow') ? 120 : 30
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
# FIXME? TESTS_ENVIRONMENT = LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset
test(test_name, exe, env : test_env, timeout : timeout, suite : suite,
args : test_command_args)

View File

@ -53,7 +53,7 @@ foreach test_name, extra_args : refcount_tests
)
suite = ['refcount'] + extra_args.get('suite', [])
timeout = suite.contains('slow') ? 120 : 30
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
# FIXME? TESTS_ENVIRONMENT = LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset
test(test_name, exe, env : test_env, timeout : timeout, suite : suite)
endforeach