upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/tiny_game_exit_code_test.cpp
diff options
context:
space:
mode:
authorDeadlyChirp <shinosuke201@gmail.com>2026-11-26 12:57:27 +0100
committerDeadlyChirp <shinosuke201@gmail.com>2026-11-26 12:57:27 +0100
commitd96bcbc3754f1952dcc7a7ff50fb15a546274270 (patch)
tree79a7728acda4951d7505e99306c7adf381b84df2 /runtime/test/tiny_game_exit_code_test.cpp
parenta73a57e1339be072baf5522351c8ec7f1482b56b (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