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:
parent
b15d1c127b
commit
67bec026bb
@ -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--) {
|
||||
|
Loading…
Reference in New Issue
Block a user