From 704d25d38bf64b2481d8fc40a79cc47d601cc40f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Jan 2023 12:29:28 -0500 Subject: Avoid running clipboard tests in parallel Since the clipboard is a globally shared resource, running clipboard tests in parallel is likely to fail because one test can smash the state expected by another. --- test/meson.build | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/test/meson.build b/test/meson.build index e113837..ee6a29a 100644 --- a/test/meson.build +++ b/test/meson.build @@ -38,11 +38,14 @@ if reuse.found() test('REUSE', reuse, args: ['--root', pugl_src_root, 'lint'], suite: 'data') endif -basic_tests = [ +basic_exclusive_tests = [ 'local_copy_paste', + 'remote_copy_paste', +] + +basic_tests = [ 'realize', 'redisplay', - 'remote_copy_paste', 'show_hide', 'size', 'strerror', @@ -87,6 +90,21 @@ foreach test : basic_tests ) endforeach +foreach test : basic_exclusive_tests + test( + test, + executable( + 'test_' + test, + 'test_@0@.c'.format(test), + c_args: test_c_args, + dependencies: [pugl_dep, stub_backend_dep], + include_directories: include_directories(includes), + ), + is_parallel: false, + suite: 'unit', + ) +endforeach + if opengl_dep.found() foreach test : gl_tests test( -- cgit v1.2.1