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:
Joachim Nilsson
2018-09-04 07:11:23 +02:00
parent d3e5900f73
commit 6ae98d135c
+3
View File
@@ -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);
}