diff unix.py @ 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 b7fb64ce03d9
children 218b8c28549c
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: