diff --git a/tests/sys/events/main.c b/tests/sys/events/main.c index d0413e02217d4..d4400af3f4487 100644 --- a/tests/sys/events/main.c +++ b/tests/sys/events/main.c @@ -196,6 +196,19 @@ int main(void) event_timeout_t event_timeout; + /* uninitialied event_timeout_t should return false */ + event_timeout_init(&event_timeout, &queue, (event_t *)&event_callback); + event_timeout.clock = NULL; + expect(!event_timeout_is_pending(&event_timeout)); + + event_timeout_init(&event_timeout, &queue, (event_t *)&event_callback); + event_timeout.queue = NULL; + expect(!event_timeout_is_pending(&event_timeout)); + + event_timeout_init(&event_timeout, &queue, (event_t *)&event_callback); + event_timeout.event = NULL; + expect(!event_timeout_is_pending(&event_timeout)); + puts("posting timed callback with timeout 1sec"); event_timeout_init(&event_timeout, &queue, (event_t *)&event_callback); #if IS_USED(MODULE_ZTIMER_USEC)