diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-01-18 15:21:08 +0100 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-01-23 08:22:58 +0100 |
| commit | cfdda74096f9dc706d909ec7bcb02b962d1b25e3 (patch) | |
| tree | ddbef7a991109ae91d094a788f946af6f912d52e /src/irmd/reg/reg.c | |
| parent | 9f2e078c694d375ff7a633e629d05554c873c8dc (diff) | |
| download | ouroboros-cfdda74096f9dc706d909ec7bcb02b962d1b25e3.tar.gz ouroboros-cfdda74096f9dc706d909ec7bcb02b962d1b25e3.zip | |
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 <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/reg/reg.c')
| -rw-r--r-- | src/irmd/reg/reg.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
