Skip to content
Snippets Groups Projects
Commit 42d387a4 authored by Martine Lenders's avatar Martine Lenders
Browse files

unittests: initialize xtimer if present

parent 02e2d8c3
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "embUnit.h" #include "embUnit.h"
#include "lpm.h" #include "lpm.h"
#include "xtimer.h"
#define UNCURRY(FUN, ARGS) FUN(ARGS) #define UNCURRY(FUN, ARGS) FUN(ARGS)
#define RUN_TEST_SUITES(...) MAP(RUN_TEST_SUITE, __VA_ARGS__) #define RUN_TEST_SUITES(...) MAP(RUN_TEST_SUITE, __VA_ARGS__)
...@@ -21,6 +22,11 @@ ...@@ -21,6 +22,11 @@
int main(void) int main(void)
{ {
#ifdef MODULE_XTIMER
/* auto_init is disabled, but some modules depends on this module being initialized */
xtimer_init();
#endif
#ifdef OUTPUT #ifdef OUTPUT
TextUIRunner_setOutputter(OUTPUTTER); TextUIRunner_setOutputter(OUTPUTTER);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment