Increase the default timeout for slow tests

If a test is part of the 'slow' test suite, we should increment the
default timeout to compensate.
This commit is contained in:
Emmanuele Bassi 2020-07-10 16:12:25 +01:00
parent 70e4dabe89
commit 333b013f7f

View File

@ -107,6 +107,8 @@ foreach t : tests
test_srcs = ['@0@.c'.format(test_name)] + t.get(1, [])
test_extra_cargs = t.get(2, [])
test_extra_ldflags = t.get(3, [])
test_extra_suites = t.get(4, [])
test_timeout = 60
test_exe = executable(test_name, test_srcs,
c_args : test_cargs + test_extra_cargs,
@ -117,17 +119,21 @@ foreach t : tests
expect_fail = xfail.contains(test_name)
if test_extra_suites.contains('slow')
test_timeout = 90
endif
test(test_name, test_exe,
args: [ '--tap', '-k' ],
protocol: 'tap',
timeout: 60,
timeout: test_timeout,
env: [
'NO_AT_BRIDGE=1',
'GSK_RENDERER=cairo',
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
],
suite: 'gtk',
suite: ['gtk'] + test_extra_suites,
should_fail: expect_fail,
)
endforeach