# HG changeset patch # User Oleg Oshmyan # Date 1299186581 0 # Node ID 995502cdafc615849bd594f045722961855ec4d6 # Parent 9b41934b2e95c0ad91f3d76d21f1caef7e7bb538 Fixed the generic implementation of call to use maxwalltime diff -r 9b41934b2e95 -r 995502cdafc6 unix.py --- 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: