https://gitlab.synchro.net/main/sbbs/-/commit/cfaec21a7bc5812f2feb615b
Modified Files:
src/ssh/test/dssh_test.h test_conn.c
Log Message:
Fix test_conn 60s timeout bugs; add per-test timing to test framework
Two reject tests (test_open_exec_rejected, test_setup_exec_rejected_by_callback)
took 30s each because dssh_chan_accept loops back after rejection to wait for the next CHANNEL_OPEN. In tests, no more opens arrive, so the 30s accept_timeout
fires. Fix: terminate the server session after joining the client thread to unblock the server's accept.
test_accept_timeout_negative replaced its 50ms thrd_sleep with an atomic flag so the main thread proceeds as soon as the accept thread enters dssh_chan_accept.
Reduced intentional-timeout safety margins to 1s (from 3-5s) in test_eof_half_close,
test_accept_zc, and the four alloc sweep server threads.
Added wall-clock timing to DSSH_TEST_MAIN: tests taking >100ms show duration
in parentheses after PASS/FAIL/SKIP.
Total dssh_conn_default time: ~5s (was ~78s).
Co-Authored-By: Claude Opus 4.6 (1M context) <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net