1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

Merge pull request #4100 from authmillenon/tests/fix/i4095

unittests: initialize xtimer if present
This commit is contained in:
Joakim Nohlgård 2015-11-06 08:53:18 +01:00
commit 6378be104c

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