summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2012-01-03 17:00:02 +0100
committerPaolo Borelli <pborelli@gnome.org>2012-01-03 17:00:02 +0100
commit7c38c1ae2240d58fa3709ee92509562358fbe852 (patch)
treecb646ff2af639ad0570e894bb0c0e583b2e7c48f /tests
parent979afbcc5a0a8e4b1b16ad5d5cf1740ee2a14033 (diff)
downloadgobject-introspection-7c38c1ae2240d58fa3709ee92509562358fbe852.tar.gz
Add a marshalling test for returning a NULL array
Diffstat (limited to 'tests')
-rw-r--r--tests/gimarshallingtests.c10
-rw-r--r--tests/gimarshallingtests.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 41f86206..7c922d4f 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -1514,6 +1514,16 @@ gi_marshalling_tests_array_zero_terminated_return (void)
}
/**
+ * gi_marshalling_tests_array_zero_terminated_return_null:
+ * Returns: (array zero-terminated=1) (transfer none):
+ */
+gchar **
+gi_marshalling_tests_array_zero_terminated_return_null (void)
+{
+ return NULL;
+}
+
+/**
* gi_marshalling_tests_array_zero_terminated_return_struct:
* Returns: (array zero-terminated=1) (transfer full):
*/
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index b9d5093d..0ad0569e 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -395,6 +395,7 @@ void gi_marshalling_tests_array_inout_etc (gint first, gint **ints, gint *length
/* Zero-terminated */
gchar **gi_marshalling_tests_array_zero_terminated_return (void);
+gchar **gi_marshalling_tests_array_zero_terminated_return_null (void);
GIMarshallingTestsBoxedStruct **gi_marshalling_tests_array_zero_terminated_return_struct (void);
void gi_marshalling_tests_array_zero_terminated_in (gchar **utf8s);