unittests: initialize xtimer if present

This commit is contained in:
Martine Lenders 2015-10-15 17:30:13 +02:00
parent 02e2d8c353
commit 42d387a42f

View File

@ -10,6 +10,7 @@
#include "embUnit.h"
#include "lpm.h"
#include "xtimer.h"
#define UNCURRY(FUN, ARGS) FUN(ARGS)
#define RUN_TEST_SUITES(...) MAP(RUN_TEST_SUITE, __VA_ARGS__)
@ -21,6 +22,11 @@
int main(void)
{
#ifdef MODULE_XTIMER
/* auto_init is disabled, but some modules depends on this module being initialized */
xtimer_init();
#endif
#ifdef OUTPUT
TextUIRunner_setOutputter(OUTPUTTER);
#endif