dbus/python/tests test-client.py,1.2,1.3

Seth Nickell seth at pdx.freedesktop.org
Mon May 31 18:21:02 PDT 2004


Update of /cvs/dbus/dbus/python/tests
In directory pdx:/tmp/cvs-serv11767/python/tests

Modified Files:
	test-client.py 
Log Message:
	* python/dbus_bindings.pyx.in:
	* python/tests/test-client.py:

	Test Suite: 1
	Python Bindings: 0

	(fix string array memory trashing bug... oops)


Index: test-client.py
===================================================================
RCS file: /cvs/dbus/dbus/python/tests/test-client.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/test-client.py	30 May 2004 06:21:00 -0000	1.2
+++ b/test-client.py	1 Jun 2004 01:20:59 -0000	1.3
@@ -43,5 +43,21 @@
 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)




More information about the dbus-commit mailing list