Mercurial > ~astiob > upreckon > hgweb
comparison win32.py @ 122:d6fd880207cb
Fixed memory-limit-exceeded false positives on Win32
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sun, 24 Apr 2011 16:48:29 +0100 |
parents | 72c02b640dcf |
children | 10aa5a0e46bd |
comparison
equal
deleted
inserted
replaced
121:72c02b640dcf | 122:d6fd880207cb |
---|---|
528 case.time_limit_string = case.cpu_time_limit_string | 528 case.time_limit_string = case.cpu_time_limit_string |
529 if case.maxcputime and time > case.maxcputime: | 529 if case.maxcputime and time > case.maxcputime: |
530 raise testcases.CPUTimeLimitExceeded | 530 raise testcases.CPUTimeLimitExceeded |
531 if case.maxcputime and case.process.returncode == 1816: | 531 if case.maxcputime and case.process.returncode == 1816: |
532 raise testcases.CPUTimeLimitExceeded | 532 raise testcases.CPUTimeLimitExceeded |
533 if case.maxmemory and case.process.returncode == -0x3ffffffb: | |
534 raise testcases.MemoryLimitExceeded | |
535 if case.maxmemory and GetProcessMemoryInfo: | 533 if case.maxmemory and GetProcessMemoryInfo: |
536 try: | 534 try: |
537 counters = GetProcessMemoryInfo(case.process._handle) | 535 counters = GetProcessMemoryInfo(case.process._handle) |
538 except WindowsError: | 536 except WindowsError: |
539 pass | 537 pass |