summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2018-07-05 17:14:53 +0100
committerPhilip Withnall <withnall@endlessm.com>2018-07-05 17:14:53 +0100
commitcfc26b5a41d0420e8790353b398bd3b50ee4abc1 (patch)
treeeb73539202550b17d31a54a305d1b8b47d42ea34
parentcf4f6d4808f61961588d30c1639f45445b7384ef (diff)
downloadglib-cfc26b5a41d0420e8790353b398bd3b50ee4abc1.tar.gz
tests: Rework slow test handling for GIO tests
Make it follow the same pattern as in glib/tests/meson.build, using a slow_tests array. Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r--gio/tests/meson.build15
1 files changed, 11 insertions, 4 deletions
diff --git a/gio/tests/meson.build b/gio/tests/meson.build
index e2d22f76e..2343f601e 100644
--- a/gio/tests/meson.build
+++ b/gio/tests/meson.build
@@ -65,6 +65,11 @@ gio_tests = [
'testfilemonitor',
'thumbnail-verification',
]
+slow_tests = [
+ 'actions',
+ 'gdbus-export',
+ 'testfilemonitor',
+]
test_extra_programs = [
['gdbus-connection-flush-helper'],
@@ -210,8 +215,9 @@ if host_machine.system() != 'windows'
install : false,
c_args : test_c_args,
dependencies : common_gio_tests_deps + extra_deps)
- if test_name == 'actions' or test_name == 'gdbus-export'
- test(test_name, exe, env : test_env, timeout : 45, suite : ['gio', 'slow'])
+ # 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 : 120, suite : ['gio', 'slow'])
else
test(test_name, exe, env : test_env, suite : ['gio'])
endif
@@ -302,8 +308,9 @@ foreach test_name : gio_tests
install : false,
c_args : test_c_args,
dependencies : common_gio_tests_deps + extra_deps)
- if test_name == 'testfilemonitor'
- test(test_name, exe, env : test_env, timeout : 45, suite : ['gio', 'slow'])
+ # 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 : 120, suite : ['gio', 'slow'])
else
test(test_name, exe, env : test_env, suite : ['gio'])
endif