1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/event_ztimer: add regression test for crashing clear

This commit is contained in:
Martine Lenders 2021-07-21 13:32:39 +02:00
parent 8924077a25
commit 399850cb43
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80

View File

@ -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);