Skip to content

Commit

Permalink
tests/sys/events: add event_timeout_is_set() to test
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Oct 4, 2023
1 parent 5073cd6 commit eb8acbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/sys/events/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
Expand Down

0 comments on commit eb8acbe

Please sign in to comment.