Browse Source

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

unittests: initialize xtimer if present
cc430
Joakim Nohlgård 7 years ago
parent
commit
6378be104c
  1. 6
      tests/unittests/main.c

6
tests/unittests/main.c

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

Loading…
Cancel
Save