[Pcsclite-cvs-commit] r6083 - /trunk/PCSC/UnitaryTests/ThreadSafe.py
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Oct 25 13:45:24 UTC 2011
Author: rousseau
Date: Tue Oct 25 13:45:23 2011
New Revision: 6083
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6083
Log:
Start loops at 0 instead of 1 to have the correct count
Modified:
trunk/PCSC/UnitaryTests/ThreadSafe.py
Modified: trunk/PCSC/UnitaryTests/ThreadSafe.py
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/UnitaryTests/ThreadSafe.py?rev=6083&op=diff
==============================================================================
--- trunk/PCSC/UnitaryTests/ThreadSafe.py (original)
+++ trunk/PCSC/UnitaryTests/ThreadSafe.py Tue Oct 25 13:45:23 2011
@@ -33,7 +33,7 @@
stress method
"""
thread = args[0]
- for j in range(1, MAX_ITER):
+ for j in range(0, MAX_ITER):
print thread,
hresult, hcontext = SCardEstablishContext(SCARD_SCOPE_USER)
if hresult != SCARD_S_SUCCESS:
@@ -52,7 +52,7 @@
threads = list()
- for i in range(1, MAX_THREADS):
+ for i in range(0, MAX_THREADS):
thread = threading.Thread(target=stress, args=(i,))
threads.append(thread)
print "start thread", i
More information about the Pcsclite-cvs-commit
mailing list