[gtk+] Skip GdkDrawingContext in some tests



commit 1ebfe1db56cc881102d70b8723456093ae811102
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 20 15:26:26 2016 -0400

    Skip GdkDrawingContext in some tests
    
    GdkDrawingContext is not freely constructible, so we need
    to skip it in the notify and finalize tests.

 testsuite/gtk/notify.c           |    1 +
 testsuite/gtk/objects-finalize.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index 9b2a8e9..c289c46 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -388,6 +388,7 @@ test_type (gconstpointer data)
   /* These can't be freely constructed/destroyed */
   if (g_type_is_a (type, GTK_TYPE_APPLICATION) ||
       g_type_is_a (type, GDK_TYPE_PIXBUF_LOADER) ||
+      g_type_is_a (type, GDK_TYPE_DRAWING_CONTEXT) ||
 #ifdef G_OS_UNIX
       g_type_is_a (type, GTK_TYPE_PRINT_JOB) ||
 #endif
diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c
index e0ebee0..0b3a519 100644
--- a/testsuite/gtk/objects-finalize.c
+++ b/testsuite/gtk/objects-finalize.c
@@ -119,6 +119,7 @@ main (int argc, char **argv)
 #endif
          /* Not allowed to finalize a GdkPixbufLoader without calling gdk_pixbuf_loader_close() */
          all_types[i] != GDK_TYPE_PIXBUF_LOADER &&
+         all_types[i] != GDK_TYPE_DRAWING_CONTEXT &&
          all_types[i] != gdk_pixbuf_simple_anim_iter_get_type())
        {
          gchar *test_path = g_strdup_printf ("/FinalizeObject/%s", g_type_name (all_types[i]));


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