From eb8acbe4b7334fcc37776c41c250de66f85f66b8 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 4 Oct 2023 13:24:41 +0200 Subject: [PATCH] tests/sys/events: add event_timeout_is_set() to test --- tests/sys/events/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/sys/events/main.c b/tests/sys/events/main.c index 0741f4f9bc96f..55111355a649a 100644 --- a/tests/sys/events/main.c +++ b/tests/sys/events/main.c @@ -197,6 +197,7 @@ int main(void) before = xtimer_now_usec(); #endif event_timeout_set(&event_timeout, (1 * US_PER_SEC)); + expect(event_timeout_is_set(&event_timeout)); event_timeout_t event_timeout_canceled; @@ -205,6 +206,7 @@ int main(void) (event_t *)&noevent_callback); event_timeout_set(&event_timeout_canceled, 500 * US_PER_MS); event_timeout_clear(&event_timeout_canceled); + expect(!event_timeout_is_set(&event_timeout_canceled)); puts("launching event queue"); event_loop(&queue);