Unit test for widget_set_timer()

This commit is contained in:
Pim van Pelt
2017-11-26 16:51:59 +01:00
parent 63f1088e7a
commit 6c4c1b3d95
3 changed files with 26 additions and 1 deletions

View File

@ -2,6 +2,8 @@
#include "screen.h"
#include "widget.h"
extern int _mgos_timers;
static void test_screen_widget_add_and_remove(struct screen_t *s, const char *fn) {
struct widget_t *w1;
@ -115,5 +117,8 @@ int test_screen() {
screen_destroy(&s);
ASSERT(!s, "Could not destroy screen");
LOG(LL_INFO, ("ensure we have no timers"));
ASSERT(_mgos_timers==0, "timers found");
return 0;
}