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

tests/xtimer_remove: springle some xtimer_is_set() calls

This commit is contained in:
Kaspar Schleiser 2022-02-09 12:54:47 +01:00
parent b15d1c127b
commit 67bec026bb

View File

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