[gobject-introspection/wip/transformer] gimarshallingtests: Fix calls to g_array_append_val
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/transformer] gimarshallingtests: Fix calls to g_array_append_val
- Date: Mon, 23 Aug 2010 19:34:55 +0000 (UTC)
commit 8d48634a2e543e17c1c06c393b16a28ad1612a1d
Author: Colin Walters <walters verbum org>
Date: Mon Aug 23 15:32:50 2010 -0400
gimarshallingtests: Fix calls to g_array_append_val
tests/gimarshallingtests.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 8992a3d..172204e 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -1526,8 +1526,10 @@ gi_marshalling_tests_garray_utf8_none_inout (GArray **array_)
void
gi_marshalling_tests_garray_utf8_container_inout (GArray **array_)
{
- static gchar *val1 = "-1";
- static gchar *val2 = "-2";
+ static gchar *val1 = "-2";
+ static gchar *val2 = "-1";
+ static gchar *val3 = "0";
+ static gchar *val4 = "1";
GArray *result;
g_assert ((*array_)->len == 3);
@@ -1536,10 +1538,10 @@ gi_marshalling_tests_garray_utf8_container_inout (GArray **array_)
g_assert (strcmp (g_array_index (*array_, gchar*, 2), "2") == 0);
result = g_array_new (TRUE, TRUE, sizeof (gchar *));
- g_array_append_val (result, val2);
g_array_append_val (result, val1);
- g_array_append_val (result, "0");
- g_array_append_val (result, "1");
+ g_array_append_val (result, val2);
+ g_array_append_val (result, val3);
+ g_array_append_val (result, val4);
*array_ = result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]