Commit 0739c39f authored by Martin Pitt's avatar Martin Pitt
Browse files

Add test for GPtrArray with transfer full

This complements the already existing test for a "transfer container" return
array. We can't verify the internal refcount as these arrays get marshalled
internally, but at least we can verify that it does not crash due to
parent 087a104f
......@@ -160,7 +160,15 @@ class TestEverything(unittest.TestCase):
self.assertEqual(len(attr_list), len(set(attr_list)))
def test_ptrarray(self):
self.assertEquals (Everything.test_garray_container_return(), ['regress'])
# transfer container
result = Everything.test_garray_container_return()
self.assertEquals (result, ['regress'])
result = None
# transfer full
result = Everything.test_garray_full_return()
self.assertEquals (result, ['regress'])
result = None
def test_struct_gpointer(self):
l1 = GLib.List()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment