diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-06-20 15:26:26 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-06-20 15:27:20 -0400 |
commit | 1ebfe1db56cc881102d70b8723456093ae811102 (patch) | |
tree | 06a6804ecbe222c21d67ab2a0e6c25662b1de444 /testsuite | |
parent | 0eeaa935b9a38cc1f4735b53c21ec0d9e507563e (diff) | |
download | gtk+-1ebfe1db56cc881102d70b8723456093ae811102.tar.gz |
Skip GdkDrawingContext in some tests
GdkDrawingContext is not freely constructible, so we need
to skip it in the notify and finalize tests.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/notify.c | 1 | ||||
-rw-r--r-- | 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 9b2a8e98b6..c289c4650f 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 e0ebee005d..0b3a5198dc 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])); |