[core] Add FixedVector::try_init so callers can handle an exhausted heap (#19253)

This commit is contained in:
J. Nick Koston
2026-09-14 09:16:37 +12:00
committed by GitHub
parent fc8611a212
commit 4f0faac148
3 changed files with 61 additions and 13 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ PLATFORMIO_OPTIONS = {
def run_tests(selected_components: list[str]) -> int:
os.environ["ASAN_OPTIONS"] = "detect_leaks=0"
# allocator_may_return_null: an oversized request must come back empty, not abort the run
os.environ["ASAN_OPTIONS"] = "detect_leaks=0:allocator_may_return_null=1"
return build_and_run(
selected_components=selected_components,
tests_dir=COMPONENTS_TESTS_DIR,