aboutsummaryrefslogtreecommitdiffstats
path: root/test/rt/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rt/test.c')
-rw-r--r--test/rt/test.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/rt/test.c b/test/rt/test.c
index fcba9607d..f4a08eeea 100644
--- a/test/rt/test.c
+++ b/test/rt/test.c
@@ -35,6 +35,7 @@
#include "testevt.h"
#include "testheap.h"
#include "testpools.h"
+#include "testdyn.h"
#include "testqueues.h"
#include "testbmk.h"
@@ -51,6 +52,7 @@ static ROMCONST struct testcase * ROMCONST *patterns[] = {
patternevt,
patternheap,
patternpools,
+ patterndyn,
patternqueues,
patternbmk,
NULL
@@ -192,6 +194,17 @@ bool _test_assert_time_window(unsigned point, systime_t start, systime_t end) {
*/
/**
+ * @brief Sets a termination request in all the test-spawned threads.
+ */
+void test_terminate_threads(void) {
+ int i;
+
+ for (i = 0; i < MAX_THREADS; i++)
+ if (threads[i])
+ chThdTerminate(threads[i]);
+}
+
+/**
* @brief Waits for the completion of all the test-spawned threads.
*/
void test_wait_threads(void) {