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.
This commit is contained in:
Oleg Hahm 2014-04-30 14:08:40 +02:00
parent f8e329bb80
commit 127801d18d

View File

@ -21,6 +21,7 @@
#include <stdio.h> #include <stdio.h>
#include "hwtimer.h" #include "hwtimer.h"
#include "thread.h"
#define BASE_DELAY (1000UL * 1000UL) #define BASE_DELAY (1000UL * 1000UL)
#define DELTA_DELAY (1000UL * 1000UL) #define DELTA_DELAY (1000UL * 1000UL)
@ -70,5 +71,6 @@ int main(void)
hwtimer_wait(HWTIMER_TICKS(1000UL * 1000UL)); hwtimer_wait(HWTIMER_TICKS(1000UL * 1000UL));
puts("hwtimer set."); puts("hwtimer set.");
thread_sleep();
return 0; return 0;
} }