From 69c3a43ec444e655ef91a0aa497277de222a5669 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 16 Jan 2024 18:31:39 +0000 Subject: [PATCH] tests: Change test timeout for GDK We use the same approach as the GTK testsuite: - default timeout of 60 seconds - timeout of 90 seconds if a test is inside the 'slow' suite --- testsuite/gdk/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testsuite/gdk/meson.build b/testsuite/gdk/meson.build index 8ca0c2036f..e909cd52a6 100644 --- a/testsuite/gdk/meson.build +++ b/testsuite/gdk/meson.build @@ -43,10 +43,16 @@ foreach t : tests suites = ['gdk'] + t.get('suites', []) + test_timeout = 60 + if 'slow' in suites + test_timeout = 90 + endif + test(test_name, test_exe, args: [ '--tap', '-k' ], protocol: 'tap', is_parallel: t.get('parallel', false), + timeout: test_timeout, env: [ 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()), 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),