Skip to content
Snippets Groups Projects
Commit 127801d1 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

tests: added a thread_sleep() at the end

Letting the main thread exit could cause failing test if thread_exit()
is broken for the tested platform, preventing the actual testing of the
hwtimer.
parent f8e329bb
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@
#include <stdio.h>
#include "hwtimer.h"
#include "thread.h"
#define BASE_DELAY (1000UL * 1000UL)
#define DELTA_DELAY (1000UL * 1000UL)
......@@ -70,5 +71,6 @@ int main(void)
hwtimer_wait(HWTIMER_TICKS(1000UL * 1000UL));
puts("hwtimer set.");
thread_sleep();
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment