summaryrefslogtreecommitdiff
path: root/tests/test/support/FreeRTOSConfig.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-08-26 13:41:05 +0700
committerGitHub <[email protected]>2026-08-26 13:41:05 +0700
commitb15c720ab0a36ee16c1cf7984c7c0f4ccf3a7015 (patch)
treea66805655d019251c30a2d3e4affa37f07ae9731 /tests/test/support/FreeRTOSConfig.h
parent375e20090a0a60fd2d47ba6553d189e05482dfea (diff)
test/hil: make main() readable and stop the suite sleeping (#3848)HEADmaster
Three readability changes with no behaviour change on the healthy path — every pre-existing test passes untouched. main() was 368 lines with try/finally three deep, its two abort paths near-identical 40-line blocks; _abort_report holds that shape once, and the controller-hint cache and pool construction move to their own helpers. 368 -> 279, test_board 180 -> 151, test_device_usbtest 164 -> 125. test_hil_bounded.py cost 78s on every commit under test/hil/, mostly one 3s post-flash settle paid by ten tests against a fake rig. Now 37s. Fixes two pre-existing defects the extraction exposed: _write_failed_spec was unguarded inside the abort path, so an OSError there replaced the caller's RuntimeError and no report was written at all; _save_controller_hints overlaid a startup snapshot onto the re-read cache, clobbering a concurrent job's newer values. Also five comments that stated the opposite of the code, and both table renderers measuring width with len() against two-column status marks.
Diffstat (limited to 'tests/test/support/FreeRTOSConfig.h')
0 files changed, 0 insertions, 0 deletions