Skip to content

Commit

Permalink
tests/event_ztimer: add regression test for crashing clear
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jul 21, 2021
1 parent 8924077 commit 399850c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/event_ztimer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ int main(void)
puts("waiting for periodic callback to be triggered 4 times");
mutex_lock(&lock);
puts("posting timed callback with timeout 0.5sec, clear right after");
event_timeout_clear(&event_timeout_cleared);
event_timeout_ztimer_init(&event_timeout_cleared, ZTIMER_USEC,
EVENT_PRIO_MEDIUM, &event_never.super);
event_timeout_set(&event_timeout_cleared, EVENT_TIMEOUT_TIME / 2);
Expand Down

0 comments on commit 399850c

Please sign in to comment.