comparison unix.py @ 126:fcdcd0c95552

Fixed the generic implementation of call to use testcases.WallTimeLimitExceeded
author Oleg Oshmyan <chortos@inbox.lv>
date Sun, 15 May 2011 23:14:00 +0100
parents 19c42a3cd962
children f5b8a0c0e3cb
comparison
equal deleted inserted replaced
125:10aa5a0e46bd 126:fcdcd0c95552
81 exitcode, now = case.process.poll(), clock() 81 exitcode, now = case.process.poll(), clock()
82 if exitcode is not None: 82 if exitcode is not None:
83 case.time_stopped = now 83 case.time_stopped = now
84 break 84 break
85 elif now >= time_end: 85 elif now >= time_end:
86 raise TimeLimitExceeded 86 raise testcases.WallTimeLimitExceeded
87 else: 87 else:
88 time.sleep(.001) 88 time.sleep(.001)
89 else: 89 else:
90 try: 90 try:
91 from fcntl import FD_CLOEXEC 91 from fcntl import FD_CLOEXEC