From 6ae98d135c560bfbbfeefb3df91cc57c590e81fb Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 4 Sep 2018 07:11:23 +0200 Subject: [PATCH] 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 --- tests/active.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/active.c b/tests/active.c index f464f34..84a2b1b 100644 --- a/tests/active.c +++ b/tests/active.c @@ -30,6 +30,9 @@ static void cb(uev_t *w, void *UNUSED(arg), int events) fail_unless(!uev_timer_active(&timer2)); fail_unless(!uev_cron_active(&cron2)); + /* Restart timer and see if we fail in uev_exit() */ + uev_timer_start(&timer2); + uev_exit(w->ctx); }