[gobject-introspection/wip/transformer] gimarshalling: More test updates



commit 84639a06b6dfabd06686a65f0d7195f9bb688d9d
Author: Colin Walters <walters verbum org>
Date:   Tue Aug 24 15:16:50 2010 -0400

    gimarshalling: More test updates

 tests/gimarshallingtests.c |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 559c955..527d169 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -2043,10 +2043,10 @@ gi_marshalling_tests_gslist_utf8_container_inout (GSList **list)
     g_assert(strcmp(g_slist_nth_data(*list, 1), "1") == 0);
     g_assert(strcmp(g_slist_nth_data(*list, 2), "2") == 0);
 
-    result = g_slist_prepend(*list, "1");
-    result = g_slist_prepend(*list, "0");
-    result = g_slist_prepend(*list, "-1");
-    result = g_slist_prepend(*list, "-2");
+    result = g_slist_prepend(result, "1");
+    result = g_slist_prepend(result, "0");
+    result = g_slist_prepend(result, "-1");
+    result = g_slist_prepend(result, "-2");
 
     *list = result;
 }
@@ -2065,10 +2065,10 @@ gi_marshalling_tests_gslist_utf8_full_inout (GSList **list)
     g_assert(strcmp(g_slist_nth_data(*list, 1), "1") == 0);
     g_assert(strcmp(g_slist_nth_data(*list, 2), "2") == 0);
 
-    result = g_slist_prepend(*list, g_strdup("-1"));
-    result = g_slist_prepend(*list, g_strdup("-2"));
-    result = g_slist_prepend(*list, g_strdup("0"));
-    result = g_slist_prepend(*list, g_strdup("1"));
+    result = g_slist_prepend(result, g_strdup("1"));
+    result = g_slist_prepend(result, g_strdup("0"));
+    result = g_slist_prepend(result, g_strdup("-1"));
+    result = g_slist_prepend(result, g_strdup("-2"));
 
     *list = result;
 }
@@ -2286,7 +2286,7 @@ gi_marshalling_tests_ghashtable_utf8_full_inout (GHashTable **hash_table)
 
     g_hash_table_insert(result, g_strdup("-1"), g_strdup("1"));
     g_hash_table_insert(result, g_strdup("0"), g_strdup("0"));
-    g_hash_table_insert(result, g_strdup("1"), g_strdup("-1"));
+    g_hash_table_insert(result, g_strdup("1"), g_strdup("1"));
 
     *hash_table = result;
 }
@@ -3070,7 +3070,6 @@ void
 gi_marshalling_tests_object_full_inout (GIMarshallingTestsObject **object)
 {
     g_assert((*object)->int_ == 42);
-    g_object_unref(*object);
 
     *object = g_object_new(GI_MARSHALLING_TESTS_TYPE_OBJECT, NULL);
 }



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