[gtk/ci-gtk3-update] testsuite/gtk: Add xfail tests



commit aac214f1b00435b591020cfafb0b768166ac4996
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Feb 11 14:53:57 2020 +0000

    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.

 testsuite/gtk/meson.build | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
---
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++


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]