mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-15 19:19:58 -04:00
The review found that no test ran rtss_limit_crash's thread gate: where the state file holds no line of the run, rtss_limit_crash puts the profile back through rtss_limit_restore, except on the worker's own thread, which may hold the lock that restore tries for a second; only the static check in tests/rtss_limit_check.py looked at it. tests/rtss_worker_check.c crash_worker_thread now makes the state file unwritable and calls rtss_limit_crash from inside SaveProfile on the worker thread, with the lock held: it must return within 200 ms with no call into the fake hooks library (a new count of every call), close the run, and let no later want reach the profile. With the gate removed from a copy of rtss_limit.c, the scenario fails. Checks that passed: tests/rtss_limit_check.py, tools/check_content.py --staged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
58 KiB
58 KiB