aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-11 12:29:28 -0500
committerDavid Robillard <d@drobilla.net>2023-01-11 12:29:28 -0500
commit704d25d38bf64b2481d8fc40a79cc47d601cc40f (patch)
treeb45a4be9ab60915ecec880b2ab9705f930c9e37c /test
parent312196f453651ffc95e44f7b7d6aff9b6e2b6329 (diff)
downloadpugl-704d25d38bf64b2481d8fc40a79cc47d601cc40f.tar.gz
pugl-704d25d38bf64b2481d8fc40a79cc47d601cc40f.tar.bz2
pugl-704d25d38bf64b2481d8fc40a79cc47d601cc40f.zip
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.
Diffstat (limited to 'test')
-rw-r--r--test/meson.build22
1 files 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(