mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
test.py: Give Debug builds three times the wall-clock timeout
gpu/clut/offset and gpu/commands/material take over 1s each in a Debug build, and every so often pushed past the 5s limit mid-run, which reads as a failure with truncated output. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
9f182a2a1b
commit
44d0c401d5
1 file changed
+5
@@ -50,6 +50,8 @@ CPU_TIMEOUTS = {
|
||||
'jit-ir': 5,
|
||||
}
|
||||
|
||||
DEBUG_TIMEOUT_SCALE = 3
|
||||
|
||||
class Command(object):
|
||||
def __init__(self, cmd, data = None):
|
||||
self.cmd = cmd
|
||||
@@ -667,6 +669,9 @@ def run_tests(test_list, args):
|
||||
global PPSSPP_EXE, TIMEOUT
|
||||
returncode = 0
|
||||
timeout = CPU_TIMEOUTS.get(cpu_backend(args), TIMEOUT)
|
||||
# Debug builds are several times slower, enough for the heavier tests to brush the limit.
|
||||
if 'Debug' in os.path.normpath(PPSSPP_EXE).split(os.sep):
|
||||
timeout *= DEBUG_TIMEOUT_SCALE
|
||||
|
||||
test_filenames = []
|
||||
for test in test_list:
|
||||
|
||||
Reference in new issue
Block a user