mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-03 12:38:25 +00:00
tests: Restart stopped timer before calling uev_exit()
There's an issue with uftpd not exiting properly. Cannot nail it down properly but it seems to be related to the stopping of active timers. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
d3e5900f73
commit
6ae98d135c
1 file changed
+3
@@ -30,6 +30,9 @@ static void cb(uev_t *w, void *UNUSED(arg), int events)
|
|||||||
fail_unless(!uev_timer_active(&timer2));
|
fail_unless(!uev_timer_active(&timer2));
|
||||||
fail_unless(!uev_cron_active(&cron2));
|
fail_unless(!uev_cron_active(&cron2));
|
||||||
|
|
||||||
|
/* Restart timer and see if we fail in uev_exit() */
|
||||||
|
uev_timer_start(&timer2);
|
||||||
|
|
||||||
uev_exit(w->ctx);
|
uev_exit(w->ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user