From 23e9d3d5040f51870f212ea70a94c9913c90e66b Mon Sep 17 00:00:00 2001 From: Seth Nickell Date: Tue, 1 Jun 2004 01:20:59 +0000 Subject: * python/dbus_bindings.pyx.in: * python/tests/test-client.py: Test Suite: 1 Python Bindings: 0 (fix string array memory trashing bug... oops) --- python/tests/test-client.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'python/tests') diff --git a/python/tests/test-client.py b/python/tests/test-client.py index 092ee43b..f08f9861 100644 --- a/python/tests/test-client.py +++ b/python/tests/test-client.py @@ -43,5 +43,21 @@ TestEcho(39.5) TestEcho("HelloWorld") TestEcho(dbus_bindings.ObjectPath("/test/path")) -#FIXME!!! Crashes on lists ?!? -#TestEchoList(["one", "two", "three", "four"]) + +string_list = [] +for i in range(200): + string_list.append("List item " + str(i)) +TestEchoList(string_list) + +int_list = range(200) +TestEchoList(int_list) + +path_list = [] +for i in range(200): + path_list.append(dbus_bindings.ObjectPath("/some/object/path" + str(i))) +TestEchoList(path_list) + +double_list = [] +for i in range(200): + double_list.append(float(i) / 1000) +TestEchoList(double_list) -- cgit