From 67bec026bb1ac3b6277f9d47ea20f10184825a61 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Wed, 9 Feb 2022 12:54:47 +0100 Subject: [PATCH] tests/xtimer_remove: springle some xtimer_is_set() calls --- tests/xtimer_remove/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/xtimer_remove/main.c b/tests/xtimer_remove/main.c index db3c25c0ad..4108ba7bd2 100644 --- a/tests/xtimer_remove/main.c +++ b/tests/xtimer_remove/main.c @@ -23,6 +23,7 @@ #include "msg.h" #include "thread.h" #include "xtimer.h" +#include "test_utils/expect.h" #define NUMOF (3U) @@ -39,9 +40,11 @@ int main(void) for (unsigned int i = 0; i < NUMOF; i++) { msg[i].type = i; xtimer_set_msg(&timers[i], 100000*(i+1), &msg[i], me); + expect(xtimer_is_set(&timers[i])); } xtimer_remove(&timers[n]); + expect(!xtimer_is_set(&timers[n])); unsigned int num = NUMOF-1; while(num--) {