From cfdda74096f9dc706d909ec7bcb02b962d1b25e3 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 18 Jan 2026 15:21:08 +0100 Subject: irmd: Fix registry tests Noticed a test fail with SEGV on codeberg: 23/23 Test #23: irmd/reg/reg_test ................ Subprocess aborted***Exception: 1.11 sec Wait accept did not return a flow id: -110. test_wait_accepting_success failed. Root cause was a missing unbind_process call in the cleanup. The test can now wait for 10 seconds, and will take less on fast systems: 23/23 Test #23: irmd/reg/reg_test ................ Passed 0.01 sec The test_wait_ipcp_boot_fail was also wrong, a failed IPCP returns/sets state to IPCP_NULL. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/reg/reg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/irmd/reg/reg.c') diff --git a/src/irmd/reg/reg.c b/src/irmd/reg/reg.c index a24a9d1d..fd8285be 100644 --- a/src/irmd/reg/reg.c +++ b/src/irmd/reg/reg.c @@ -1816,6 +1816,8 @@ int reg_prepare_flow_accept(struct flow_info * info) ret = reg_flow_update(flow, info); + pthread_cond_broadcast(®.cond); + pthread_mutex_unlock(®.mtx); return ret; -- cgit v1.2.3