[gtk/matthiasc/for-master] testsuite: Run the clipboard test in isolation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] testsuite: Run the clipboard test in isolation
- Date: Fri, 17 Sep 2021 15:28:10 +0000 (UTC)
commit b1c1a2d8afbbc5203ff80392f64a9abf8244a46e
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 17 11:24:54 2021 -0400
testsuite: Run the clipboard test in isolation
We can't have other test pop up windows, and possibly
stealing focus and preventing us from getting data
offers. So, run the clipboard test in isolation.
testsuite/gdk/meson.build | 41 ++++++++++++++++++++++-------------------
1 file changed, 22 insertions(+), 19 deletions(-)
---
diff --git a/testsuite/gdk/meson.build b/testsuite/gdk/meson.build
index c259be1f06..23ac954684 100644
--- a/testsuite/gdk/meson.build
+++ b/testsuite/gdk/meson.build
@@ -10,36 +10,39 @@ clipboard_client = executable('clipboard-client',
install_dir: testexecdir)
tests = [
- 'array',
- 'cairo',
- 'clipboard',
- 'contentformats',
- 'contentserializer',
- 'cursor',
- 'display',
- 'displaymanager',
- 'encoding',
- 'keysyms',
- 'memorytexture',
- 'pixbuf',
- 'rectangle',
- 'rgba',
- 'seat',
- 'texture',
- 'texture-threads',
+ { 'name': 'array' },
+ { 'name': 'cairo' },
+ { 'name': 'clipboard', 'parallel': false, },
+ { 'name': 'contentformats' },
+ { 'name': 'contentserializer' },
+ { 'name': 'cursor' },
+ { 'name': 'display' },
+ { 'name': 'displaymanager' },
+ { 'name': 'encoding' },
+ { 'name': 'keysyms' },
+ { 'name': 'memorytexture' },
+ { 'name': 'pixbuf' },
+ { 'name': 'rectangle' },
+ { 'name': 'rgba' },
+ { 'name': 'seat' },
+ { 'name': 'texture' },
+ { 'name': 'texture-threads' },
]
foreach t : tests
- test_exe = executable(t, '@0@.c'.format(t),
+ test_name = t.get('name')
+ test_exe = executable(test_name,
+ sources: '@0@.c'.format(test_name),
c_args: common_cflags,
dependencies: libgtk_dep,
install: get_option('install-tests'),
install_dir: testexecdir,
)
- test(t, test_exe,
+ test(test_name, test_exe,
args: [ '--tap', '-k' ],
protocol: 'tap',
+ is_parallel: t.get('parallel', false),
env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]