diff options
author | Stéphane Seng <seng.stephane@gmail.com> | 2019-07-14 21:47:40 +0000 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-07-14 21:47:40 +0000 |
commit | a62855702c3bc0b10370ef25d622a32e227283bd (patch) | |
tree | d5b5a32175e82550a855a77117ecc6a1f9878ebb /tests/gimarshallingtests.h | |
parent | a26342256df34252dcc28da0e2f4913813701005 (diff) | |
download | gobject-introspection-a62855702c3bc0b10370ef25d622a32e227283bd.tar.gz |
gimarshallingtests: Add a marshalling test case for GPtrArrays and GArrays of structures
Prior to this, the only marshalling test cases available for GPtrArrays were
for GPtrArrays of strings.
This commit adds a marshalling test case for GPtrArrays of structures, with the
same objective than the gi_marshalling_tests_array_zero_terminated_return_struct() test case.
This also adds a similar marshalling test case for GArrays of structures, for
completeness.
This is a follow-up to https://gitlab.gnome.org/GNOME/gjs/issues/9 where a
regression has been detected with these types of GPtrArrays.
Diffstat (limited to 'tests/gimarshallingtests.h')
-rw-r--r-- | tests/gimarshallingtests.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h index 7837acba..d5357ec9 100644 --- a/tests/gimarshallingtests.h +++ b/tests/gimarshallingtests.h @@ -834,6 +834,9 @@ GArray *gi_marshalling_tests_garray_utf8_container_return (void); _GI_TEST_EXTERN GArray *gi_marshalling_tests_garray_utf8_full_return (void); +_GI_TEST_EXTERN +GArray *gi_marshalling_tests_garray_boxed_struct_full_return (void); + _GI_TEST_EXTERN void gi_marshalling_tests_garray_int_none_in (GArray *array_); @@ -884,6 +887,9 @@ GPtrArray *gi_marshalling_tests_gptrarray_utf8_container_return (void); _GI_TEST_EXTERN GPtrArray *gi_marshalling_tests_gptrarray_utf8_full_return (void); +_GI_TEST_EXTERN +GPtrArray *gi_marshalling_tests_gptrarray_boxed_struct_full_return (void); + _GI_TEST_EXTERN void gi_marshalling_tests_gptrarray_utf8_none_in (GPtrArray *parray_); |