Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
42d387a4
Commit
42d387a4
authored
9 years ago
by
Martine Lenders
Browse files
Options
Downloads
Patches
Plain Diff
unittests: initialize xtimer if present
parent
02e2d8c3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/unittests/main.c
+6
-0
6 additions, 0 deletions
tests/unittests/main.c
with
6 additions
and
0 deletions
tests/unittests/main.c
+
6
−
0
View file @
42d387a4
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment