BBS:      TELESC.NET.BR
Assunto:  exec/tests/global/interrupt_rearms.js
De:       Rob Swindell (on Debian Linux)
Data:     Sun, 12 Apr 2026 23:07:15 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/687223f652312de930ac1fc8
Modified Files:
	exec/tests/global/interrupt_rearms.js
Log Message:
Rework interrupt_rearms test to use js.counter observation

The previous version set js.time_limit=1 expecting it to terminate
a tight loop after 1 second, but time_limit is a callback-count
limit (for infinite-loop detection), not a wall-clock timer. On
test runners with low time_limit defaults, the test tripped the
infinite-loop safeguard immediately.

The new version disables auto_terminate, spins for ~1 second, and
verifies js.counter advanced  the background trigger thread fires
interrupts every ~100ms, so a working callback path produces several
invocations. With the shim bug, only one ever fires.

Co-Authored-By: Claude Opus 4.6 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]