gh-141794: Reduce size of compiler stress tests to fix Android warnings (#142263)

This commit is contained in:
Malcolm Smith 2025-12-07 20:01:01 +00:00 committed by GitHub
parent 1db9f56bff
commit f193c8fe9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View file

@ -992,7 +992,8 @@ def next(self):
@skip_wasi_stack_overflow()
@skip_emscripten_stack_overflow()
def test_ast_recursion_limit(self):
crash_depth = 500_000
# Android test devices have less memory.
crash_depth = 100_000 if sys.platform == "android" else 500_000
success_depth = 200
if _testinternalcapi is not None:
remaining = _testinternalcapi.get_c_recursion_remaining()