ci: Mark failing windows tests as can-fail and do not ignore test failures

This commit is contained in:
Marco Trevisan (Treviño) 2022-10-19 21:34:48 +02:00
parent b9e085537d
commit 54a9e797fe
5 changed files with 17 additions and 6 deletions

View File

@ -17,8 +17,7 @@ meson %args% _build || goto :error
python .gitlab-ci/check-missing-install-tag.py _build || goto :error
ninja -C _build || goto :error
:: FIXME: dont ignore test errors
meson test -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER%
meson test -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER% || goto :error
meson test -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER% --setup=unstable_tests --suite=failing --suite=flaky
:: FIXME: can we get code coverage support?

View File

@ -69,7 +69,9 @@ gio_tests = {
'giomodule' : {},
'gsubprocess' : {},
'g-file' : {},
'g-file-info' : {},
'g-file-info' : {
'can_fail' : host_system == 'windows',
},
'g-icon' : {},
'gdbus-addresses' : {},
'gdbus-message' : {},
@ -78,6 +80,7 @@ gio_tests = {
'install_rpath' : installed_tests_execdir,
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392
'should_fail' : host_system == 'darwin',
'can_fail' : host_system == 'windows',
},
'inet-address' : {},
'io-stream' : {},

View File

@ -29,6 +29,7 @@ glib_tests = {
'fileutils' : {},
'gdatetime' : {
'suite' : ['slow'],
'can_fail' : host_system == 'windows',
},
'guuid' : {},
'gvariant' : {
@ -111,7 +112,9 @@ glib_tests = {
'slice-eager-freeing' : {},
'slist' : {},
'sort' : {},
'spawn-multithreaded' : {},
'spawn-multithreaded' : {
'can_fail': glib_build_static and host_system == 'windows',
},
'spawn-path-search' : {},
'spawn-singlethread' : {
'dependencies' : [winsock2],
@ -319,7 +322,9 @@ if installed_tests_enabled
endif
python_tests = {
'assert-msg-test.py' : {},
'assert-msg-test.py' : {
'can_fail' : host_system == 'windows',
},
}
executable('assert-msg-test', ['assert-msg-test.c'],

View File

@ -4,11 +4,13 @@ gmodule_tests = {
'export_dynamic' : true,
'source': 'module-test.c',
'c_args': ['-DMODULE_TYPE="library"'],
'can_fail': glib_build_static and host_system == 'windows',
},
'module-test-plugin' : {
'export_dynamic' : true,
'source': 'module-test.c',
'c_args': ['-DMODULE_TYPE="plugin"'],
'can_fail': glib_build_static and host_system == 'windows',
},
}

View File

@ -125,7 +125,9 @@ endif
python_tests = {
'genmarshal.py' : {},
'gobject-query.py' : {},
'gobject-query.py' : {
'can_fail' : host_system == 'windows',
},
'mkenums.py' : {},
}