test/cogl/unit: Allow marking known failures
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
4905a55f64
commit
57382b6aff
@ -1,6 +1,6 @@
|
|||||||
cogl_unit_tests = [
|
cogl_unit_tests = [
|
||||||
'test-bitmask',
|
['test-bitmask', true],
|
||||||
'test-pipeline-cache',
|
['test-pipeline-cache', true],
|
||||||
]
|
]
|
||||||
|
|
||||||
test_env = environment()
|
test_env = environment()
|
||||||
@ -10,11 +10,12 @@ test_env.set('G_ENABLE_DIAGNOSTIC', '0')
|
|||||||
test_env.set('MUTTER_TEST_PLUGIN_PATH', '@0@'.format(default_plugin.full_path()))
|
test_env.set('MUTTER_TEST_PLUGIN_PATH', '@0@'.format(default_plugin.full_path()))
|
||||||
|
|
||||||
foreach unit_test: cogl_unit_tests
|
foreach unit_test: cogl_unit_tests
|
||||||
test_name = 'cogl-' + unit_test
|
test_name = 'cogl-' + unit_test[0]
|
||||||
|
should_pass = unit_test[1]
|
||||||
|
|
||||||
test_executable = executable(test_name,
|
test_executable = executable(test_name,
|
||||||
sources: [
|
sources: [
|
||||||
unit_test + '.c',
|
unit_test[0] + '.c',
|
||||||
cogl_test_utils,
|
cogl_test_utils,
|
||||||
],
|
],
|
||||||
c_args: [
|
c_args: [
|
||||||
@ -36,5 +37,6 @@ foreach unit_test: cogl_unit_tests
|
|||||||
suite: ['cogl', 'cogl/unit'],
|
suite: ['cogl', 'cogl/unit'],
|
||||||
env: test_env,
|
env: test_env,
|
||||||
is_parallel: false,
|
is_parallel: false,
|
||||||
|
should_fail: not should_pass,
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
Loading…
Reference in New Issue
Block a user