[pygobject] Add (failing) test for caller-allocated GArray return value



commit f262320ac22b48a9d007c425633f3ca426b7fb4a
Author: Martin Pitt <martinpitt gnome org>
Date:   Mon Dec 17 16:18:24 2012 +0100

    Add (failing) test for caller-allocated GArray return value
    
    Call new GIMarshallingTests.garray_utf8_full_out_caller_allocated() function
    which reproduces https://bugzilla.gnome.org/show_bug.cgi?id=690041.
    
    The test is failing and causing a segfault right now, so disable it until this
    actually works.

 tests/test_gi.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 0ee683c..e55f57c 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -959,6 +959,10 @@ class TestGArray(unittest.TestCase):
     def test_garray_utf8_full_out(self):
         self.assertEqual(['0', '1', '2'], GIMarshallingTests.garray_utf8_full_out())
 
+    # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=690041
+    def disabled_test_garray_utf8_full_out_caller_allocated(self):
+        self.assertEqual(['0', '1', '2'], GIMarshallingTests.garray_utf8_full_out_caller_allocated())
+
     def test_garray_utf8_none_inout(self):
         self.assertEqual(['-2', '-1', '0', '1'], GIMarshallingTests.garray_utf8_none_inout(Sequence(('0', '1', '2'))))
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]