summaryrefslogtreecommitdiffstats
path: root/python/tests/test-client.py
diff options
context:
space:
mode:
authorSeth Nickell <seth@gnome.org>2004-06-01 01:20:59 +0000
committerSeth Nickell <seth@gnome.org>2004-06-01 01:20:59 +0000
commit23e9d3d5040f51870f212ea70a94c9913c90e66b (patch)
tree672609cc6a54ca4a4accb6b2ad963b1084572470 /python/tests/test-client.py
parentd027c9937534e3f49564e9c30c37421f8138c562 (diff)
* python/dbus_bindings.pyx.in:
* python/tests/test-client.py: Test Suite: 1 Python Bindings: 0 (fix string array memory trashing bug... oops)
Diffstat (limited to 'python/tests/test-client.py')
-rw-r--r--python/tests/test-client.py20
1 files changed, 18 insertions, 2 deletions
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)