From fc33bf2d1f666546e474e688fb3f2a8baf0052c1 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 26 Mar 2019 18:05:48 +0000 Subject: [PATCH] Skip all LayoutChild when testing GtkLayoutChild instances are created on demand once we have a widget, a GtkLayoutManager, and a child widget. This makes testing their creation fairly tricky. Let's skip them, for the time being. --- testsuite/gtk/defaultvalue.c | 1 + testsuite/gtk/notify.c | 1 + testsuite/gtk/objects-finalize.c | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c index 34c9638cea..6404cda1ae 100644 --- a/testsuite/gtk/defaultvalue.c +++ b/testsuite/gtk/defaultvalue.c @@ -77,6 +77,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, GTK_TYPE_LAYOUT_CHILD) || #ifdef G_OS_UNIX g_type_is_a (type, GTK_TYPE_PRINT_JOB) || #endif diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c index f36c8f43e7..e1622059da 100644 --- a/testsuite/gtk/notify.c +++ b/testsuite/gtk/notify.c @@ -370,6 +370,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, GTK_TYPE_LAYOUT_CHILD) || #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 3e64c2ff22..b43ab812ee 100644 --- a/testsuite/gtk/objects-finalize.c +++ b/testsuite/gtk/objects-finalize.c @@ -72,6 +72,11 @@ test_finalize_object (gconstpointer data) NULL); g_object_unref (list_store); } + else if (g_type_is_a (test_type, GTK_TYPE_LAYOUT_CHILD)) + { + g_test_skip ("Skipping GtkLayoutChild type"); + return; + } else object = g_object_new (test_type, NULL); g_assert (G_IS_OBJECT (object));