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.
dev/timer
Oleg Hahm 9 years ago
parent f8e329bb80
commit 127801d18d

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

Loading…
Cancel
Save