Merge branch 'testsuite_fix_display_x11_on_win32' into 'main'

testsuite: don't run x11-specific tests if disabled

See merge request GNOME/gtk!6657
This commit is contained in:
Benjamin Otte 2023-12-14 01:57:13 +00:00
commit b782f80311
2 changed files with 13 additions and 3 deletions

View File

@ -13,9 +13,7 @@ tests = [
{ 'name': 'contentformats' },
{ 'name': 'contentserializer' },
{ 'name': 'cursor' },
{ 'name': 'display' },
{ 'name': 'displaymanager' },
{ 'name': 'encoding' },
{ 'name': 'glcontext' },
{ 'name': 'keysyms' },
{ 'name': 'memorytexture' },
@ -27,6 +25,13 @@ tests = [
{ 'name': 'popuplayout' },
]
if x11_enabled
tests += [
{ 'name': 'display' },
{ 'name': 'encoding' },
]
endif
foreach t : tests
test_name = t.get('name')
test_exe = executable(test_name,

View File

@ -100,12 +100,17 @@ tests = [
{ 'name': 'treesorter' },
{ 'name': 'treeview' },
{ 'name': 'typename' },
{ 'name': 'displayclose' },
{ 'name': 'revealer-size' },
{ 'name': 'widgetorder' },
{ 'name': 'widget-refcount' },
]
if x11_enabled
tests += [
{ 'name': 'displayclose' },
]
endif
# Tests that test private apis and therefore are linked against libgtk-4.a
internal_tests = [
{ 'name': 'bitmask' },