From 127801d18d35902ea8515260b64e9abc35c1d19d Mon Sep 17 00:00:00 2001
From: Oleg Hahm <oleg@hobbykeller.org>
Date: Wed, 30 Apr 2014 14:08:40 +0200
Subject: [PATCH] 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.
---
 tests/test_hwtimer/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test_hwtimer/main.c b/tests/test_hwtimer/main.c
index 990562e0fa..fd3775111a 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;
 }
-- 
GitLab