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:
commit
6378be104c
@ -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…
x
Reference in New Issue
Block a user