rea/tests/composition
Sravan Avvaru 911152a04d
fix(cli): complete cleanup after relayed interrupts (#1202)
* fix: Handle relayed SIGINT gracefully in withProcessCancellation

Changes `process.once` to `process.on` for SIGINT in `DirectAnalysis.ts`.
When REA is launched via npx, a single process-group SIGINT triggers two
SIGINT events (one direct, one relayed). Previously, the first event would
consume the handler and the second would abruptly terminate the Node process,
abandoning Ghidra resource cleanup.

This change ensures subsequent SIGINTs idempotently request cancellation
without crashing the process, matching the behaviour of `withCommandCancellation`.

* fix(cli): keep termination guards through provider cleanup

* test(cli): exercise repeated analysis signals on macOS

---------

Co-authored-by: N0zoM1z0 <1705004398@qq.com>
2026-10-09 12:45:23 +08:00
..
analysis-sessions test(native): build the .app fixture executable with a complete Mach-O header 2026-10-09 03:59:19 +00:00
android fix(application): budget bridge candidate projection by bytes 2026-10-09 05:15:23 +08:00
javascript-applications fix(javascript): bound primitive string growth and repeated evaluation 2026-10-09 00:49:31 +08:00
runtime-observation refactor(javascript): group domain semantics and contracts (#907) 2026-10-07 17:16:58 +08:00
directAnalysisFactories.test.ts fix(cli): complete cleanup after relayed interrupts (#1202) 2026-10-09 12:45:23 +08:00
directAnalysisSnapshotReplay.test.ts fix(analysis): bind overview document identity to the active target (#1094) 2026-10-09 00:57:28 +08:00
idaProvider.test.ts test: remove duplicate result assertions before throwing guards 2026-10-09 02:58:03 +08:00