[glib] tests: comment out asserts in dynamic type tests



commit d7c8eda18676dbb1e6743ef46b3bbfe00cdbb578
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Feb 7 14:05:28 2013 -0500

    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

 tests/gobject/defaultiface.c |    6 ++++++
 tests/gobject/dynamictype.c  |    4 ++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/tests/gobject/defaultiface.c b/tests/gobject/defaultiface.c
index b9aa764..c44c18a 100644
--- a/tests/gobject/defaultiface.c
+++ b/tests/gobject/defaultiface.c
@@ -159,11 +159,15 @@ test_dynamic_iface (void)
   
   /* 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);
@@ -172,7 +176,9 @@ test_dynamic_iface (void)
 
   /* And Unref causes finalize once more*/
   g_type_default_interface_unref (dynamic_iface);
+#if 0
   g_assert (!dynamic_iface_init);
+#endif
 }
 
 int
diff --git a/tests/gobject/dynamictype.c b/tests/gobject/dynamictype.c
index 5e7ab5a..b527608 100644
--- a/tests/gobject/dynamictype.c
+++ b/tests/gobject/dynamictype.c
@@ -144,8 +144,10 @@ test_dynamic_type (void)
 
   /* 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);
@@ -155,8 +157,10 @@ test_dynamic_type (void)
   /* 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]