changeset 100:995502cdafc6 2.00.0

Fixed the generic implementation of call to use maxwalltime
author Oleg Oshmyan <chortos@inbox.lv>
date Thu, 03 Mar 2011 21:09:41 +0000
parents 9b41934b2e95
children b92333120c67
files unix.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/unix.py	Wed Mar 02 20:03:44 2011 +0000
+++ b/unix.py	Thu Mar 03 21:09:41 2011 +0000
@@ -61,7 +61,7 @@
 		except OSError:
 			raise testcases.CannotStartTestee(sys.exc_info()[1])
 		case.time_started = clock()
-		if not case.maxtime:
+		if not case.maxwalltime:
 			while True:
 				exitcode, now = case.process.poll(), clock()
 				if exitcode is not None:
@@ -70,7 +70,7 @@
 				else:
 					time.sleep(.001)
 		else:
-			time_end = case.time_started + case.maxtime
+			time_end = case.time_started + case.maxwalltime
 			while True:
 				exitcode, now = case.process.poll(), clock()
 				if exitcode is not None: