diff --git a/tests/test_hwtimer/main.c b/tests/test_hwtimer/main.c
index 990562e0fa978dbb3d900fffd381e39877c1fce4..fd3775111a007072591241ab111846bfc5bf4b61 100644
--- a/tests/test_hwtimer/main.c
+++ b/tests/test_hwtimer/main.c
@@ -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;
 }