aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c
index 3f2cc9514..2c180ba4b 100644
--- a/test/test.c
+++ b/test/test.c
@@ -148,6 +148,14 @@ void test_assert_time_window(systime_t start, systime_t end) {
/*
* Threads utils.
*/
+void test_terminate_threads(void) {
+ int i;
+
+ for (i = 0; i < MAX_THREADS; i++)
+ if (threads[i])
+ chThdTerminate(threads[i]);
+}
+
void test_wait_threads(void) {
int i;