summaryrefslogtreecommitdiff
path: root/dbind
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2021-11-23 13:00:35 -0600
committerFederico Mena Quintero <federico@gnome.org>2021-11-23 13:00:35 -0600
commite0f4bda42b95d9193321c2b1693f032b7c1b758f (patch)
tree6c23f63c6ade247487b4a8f643b9fccbdbc2a218 /dbind
parentdc8294498f9ce54c761f9115e6998ff32d9da2be (diff)
downloadat-spi2-core-e0f4bda42b95d9193321c2b1693f032b7c1b758f.tar.gz
test_struct_with_array() - use the correct variable in the assertions
The code is testing the demarshaled value, which lives in q, not in p.
Diffstat (limited to 'dbind')
-rw-r--r--dbind/dbtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbind/dbtest.c b/dbind/dbtest.c
index b338c036..085d7ffb 100644
--- a/dbind/dbtest.c
+++ b/dbind/dbtest.c
@@ -293,8 +293,8 @@ void test_struct_with_array ()
demarshal (msg, TYPEOF_ARRAYSTRUCT, &a2);
q = &g_array_index (a2, ArrayStruct, 0);
- g_assert (p[0].pad1 == 2);
- g_assert (g_array_index (p[1].vals, dbus_uint32_t, 1) == 1000000000);
+ g_assert (q[0].pad1 == 2);
+ g_assert (g_array_index (q[1].vals, dbus_uint32_t, 1) == 1000000000);
printf ("struct with array ok\n");