[gtk/fixed-layout: 2/2] Skip all LayoutChild when testing object finalization
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fixed-layout: 2/2] Skip all LayoutChild when testing object finalization
- Date: Tue, 26 Mar 2019 18:15:53 +0000 (UTC)
commit baedf2d6f7656593b0aef4e66ae68984add6c01b
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Mar 26 18:05:48 2019 +0000
Skip all LayoutChild when testing object finalization
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/objects-finalize.c | 5 +++++
1 file changed, 5 insertions(+)
---
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]