diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-02-11 14:53:57 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-03-13 16:30:06 +0000 |
commit | aac214f1b00435b591020cfafb0b768166ac4996 (patch) | |
tree | ab36501c004d3c27e79c4f503a8956abe57d51bb /testsuite | |
parent | b4808c187f23489ae075e99a04c484fa923b8b0f (diff) | |
download | gtk+-aac214f1b00435b591020cfafb0b768166ac4996.tar.gz |
testsuite/gtk: Add xfail tests
Some tests are expected to fail.
Some tests are expected to fail in non-debugging builds.
The icontheme test is the latter.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/meson.build | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build index 5f3556092a..fc3b59fd1a 100644 --- a/testsuite/gtk/meson.build +++ b/testsuite/gtk/meson.build @@ -50,6 +50,17 @@ tests = [ ['revealer-size'], ] +# Tests that are expected to fail +xfail = [ +] + +# Tests that are expected to fail on non-debug builds +xfail_nodebug = [ + 'icontheme', # Overrides debugging messages +] + +is_debug = get_option('buildtype').startswith('debug') + test_cargs = [] if os_unix @@ -77,6 +88,11 @@ foreach t : tests install: get_option('installed_tests'), install_dir: installed_test_bindir) + expect_fail = xfail.contains(test_name) + if not is_debug + expect_fail = xfail_nodebug.contains(test_name) + endif + test(test_name, test_exe, args: [ '--tap', '-k' ], env: [ 'GIO_USE_VOLUME_MONITOR=unix', @@ -89,7 +105,9 @@ foreach t : tests 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir), 'GTK_TEST_MESON=1', ], - suite: 'gtk') + suite: 'gtk', + should_fail: expect_fail, + ) endforeach # FIXME: if objc autotestkeywords_CPPFLAGS += -DHAVE_OBJC=1 -x objective-c++ |