Files
lightgui/tests
cnmcdee 0fae25f216 Tests: kill the spin test binary (and its gdb) on exit
- code_window_tests.sh and debugger_tests.sh launch a spin binary
  (loops forever for the step debugger) and never killed it; two
  spins were left at ~100% CPU each, 80+ minutes after their tests
  finished.
- kill_spin() (path-scoped to the test's own WORK/spin, via
  /proc/<pid>/exe, so an unrelated spin is never touched) kills the
  spin, waits for its gdb parent to exit, and kills the gdb if it
  lingers. Wired into kill_app() and the EXIT trap, plus a pre-test
  cleanup that kills stale spins from aborted runs.
- Verified: code_window_tests.sh run twice, ALL PASS both times, no
  spin/gdb/lightgui/Xvfb left afterwards; the 41-minute stale spin
  from the earlier run was cleaned up by the pre-test cleanup.
- debugger_tests.sh ALL PASS, no spin/gdb left.
2026-11-29 19:54:09 +00:00
..