diff options
| author | DeadlyChirp <shinosuke201@gmail.com> | 2026-11-26 12:57:27 +0100 |
|---|---|---|
| committer | DeadlyChirp <shinosuke201@gmail.com> | 2026-11-26 12:57:27 +0100 |
| commit | d96bcbc3754f1952dcc7a7ff50fb15a546274270 (patch) | |
| tree | 79a7728acda4951d7505e99306c7adf381b84df2 /runtime/test/tiny_game_exit_code_test.cpp | |
| parent | a73a57e1339be072baf5522351c8ec7f1482b56b (diff) | |
tests: keep the TUI's os._exit(130) SIGINT handler out of the test process (TEST-LEONIDA-TUI-SIGINT-LEAK)
run_setup() and LeonidaBoard.__enter__ call install_interrupt_handlers(), which
replaces the process-wide SIGINT handler (and on Windows SIGBREAK and the console
control handler) with one that calls os._exit(130) and never restores the old one.
Under one shared runner (pytest tests) a later test that raises KeyboardInterrupt on
purpose, such as test_run_semantic_tests.py's interrupt tests, then ends the whole
test process with exit code 130 and no summary.
Patch install_interrupt_handlers to a no-op for the module and add a test that the
process SIGINT handler is unchanged after run_setup().
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions