We have some testcases that assert that type modules are unloaded after
the last reference on them is dropped. Comment out those asserts now
that we turned the last unref into a no-op.
https://bugzilla.gnome.org/show_bug.cgi?id=693351
/* Unref causes finalize */
g_type_default_interface_unref (dynamic_iface);
+#if 0
g_assert (!dynamic_iface_init);
+#endif
/* Peek returns NULL */
dynamic_iface = g_type_default_interface_peek (TEST_TYPE_DYNAMIC_IFACE);
+#if 0
g_assert (dynamic_iface == NULL);
+#endif
/* Ref reloads */
dynamic_iface = g_type_default_interface_ref (TEST_TYPE_DYNAMIC_IFACE);
/* And Unref causes finalize once more*/
g_type_default_interface_unref (dynamic_iface);
+#if 0
g_assert (!dynamic_iface_init);
+#endif
}
int
/* Peek returns NULL */
class = g_type_class_peek (DYNAMIC_OBJECT_TYPE);
+#if 0
g_assert (!class);
g_assert (!loaded);
+#endif
/* Ref reloads */
class = g_type_class_ref (DYNAMIC_OBJECT_TYPE);
/* And Unref causes finalize once more*/
g_type_class_unref (class);
class = g_type_class_peek (DYNAMIC_OBJECT_TYPE);
+#if 0
g_assert (!class);
g_assert (!loaded);
+#endif
}
int