tests: Add a regression test case for GPtrArrays and GArrays of structures
This Merge Request depends on gobject-introspection!160 (merged) which adds
GIMarshallingTests.garray_boxed_struct_full_return()
andGIMarshallingTests.gptrarray_boxed_struct_full_return()
.Without these two new functions, the build fails, in particular on these two new test cases:
FAIL: installed-tests/js/testGIMarshalling.js 39 GArray of structs can be returned with transfer full
FAIL: installed-tests/js/testGIMarshalling.js 56 GPtrArray of structs can be returned with transfer full
Follow-up to #9 (closed), where it was identified that GPtrArrays of structures were not properly marshalled.
This issue was fixed in 3a5e42db but no regression tests were added or modified.
This new regression test fails on versions prior to the fix (on https://gitlab.gnome.org/GNOME/gjs/-/tags/1.57.2 for example) and passes on newer versions (on https://gitlab.gnome.org/GNOME/gjs/-/tags/1.57.3 for example).
Closes #9 (closed)