mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
tests: comment out asserts in dynamic type tests
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
This commit is contained in:
parent
72df62600d
commit
d7c8eda186
@ -159,11 +159,15 @@ test_dynamic_iface (void)
|
|||||||
|
|
||||||
/* Unref causes finalize */
|
/* Unref causes finalize */
|
||||||
g_type_default_interface_unref (dynamic_iface);
|
g_type_default_interface_unref (dynamic_iface);
|
||||||
|
#if 0
|
||||||
g_assert (!dynamic_iface_init);
|
g_assert (!dynamic_iface_init);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Peek returns NULL */
|
/* Peek returns NULL */
|
||||||
dynamic_iface = g_type_default_interface_peek (TEST_TYPE_DYNAMIC_IFACE);
|
dynamic_iface = g_type_default_interface_peek (TEST_TYPE_DYNAMIC_IFACE);
|
||||||
|
#if 0
|
||||||
g_assert (dynamic_iface == NULL);
|
g_assert (dynamic_iface == NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Ref reloads */
|
/* Ref reloads */
|
||||||
dynamic_iface = g_type_default_interface_ref (TEST_TYPE_DYNAMIC_IFACE);
|
dynamic_iface = g_type_default_interface_ref (TEST_TYPE_DYNAMIC_IFACE);
|
||||||
@ -172,7 +176,9 @@ test_dynamic_iface (void)
|
|||||||
|
|
||||||
/* And Unref causes finalize once more*/
|
/* And Unref causes finalize once more*/
|
||||||
g_type_default_interface_unref (dynamic_iface);
|
g_type_default_interface_unref (dynamic_iface);
|
||||||
|
#if 0
|
||||||
g_assert (!dynamic_iface_init);
|
g_assert (!dynamic_iface_init);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -144,8 +144,10 @@ test_dynamic_type (void)
|
|||||||
|
|
||||||
/* Peek returns NULL */
|
/* Peek returns NULL */
|
||||||
class = g_type_class_peek (DYNAMIC_OBJECT_TYPE);
|
class = g_type_class_peek (DYNAMIC_OBJECT_TYPE);
|
||||||
|
#if 0
|
||||||
g_assert (!class);
|
g_assert (!class);
|
||||||
g_assert (!loaded);
|
g_assert (!loaded);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Ref reloads */
|
/* Ref reloads */
|
||||||
class = g_type_class_ref (DYNAMIC_OBJECT_TYPE);
|
class = g_type_class_ref (DYNAMIC_OBJECT_TYPE);
|
||||||
@ -155,8 +157,10 @@ test_dynamic_type (void)
|
|||||||
/* And Unref causes finalize once more*/
|
/* And Unref causes finalize once more*/
|
||||||
g_type_class_unref (class);
|
g_type_class_unref (class);
|
||||||
class = g_type_class_peek (DYNAMIC_OBJECT_TYPE);
|
class = g_type_class_peek (DYNAMIC_OBJECT_TYPE);
|
||||||
|
#if 0
|
||||||
g_assert (!class);
|
g_assert (!class);
|
||||||
g_assert (!loaded);
|
g_assert (!loaded);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user