diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-16 09:20:45 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-16 09:20:45 +0000 |
commit | ceeef3c918319996786b297b40a43e99e446e2c9 (patch) | |
tree | 54bfc13b658becedc48ec8a3fa42aff9ebfd3b3c /test/rt/testbmk.c | |
parent | 1a503b3dfaaeed2e430f8e530d4c3a5fd3a015bc (diff) | |
download | ChibiOS-ceeef3c918319996786b297b40a43e99e446e2c9.tar.gz ChibiOS-ceeef3c918319996786b297b40a43e99e446e2c9.tar.bz2 ChibiOS-ceeef3c918319996786b297b40a43e99e446e2c9.zip |
Added extra assertions to threads creation to prevent registry corruption, updated the test suite.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9121 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/rt/testbmk.c')
-rw-r--r-- | test/rt/testbmk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/rt/testbmk.c b/test/rt/testbmk.c index 1bffbc4df..3cc713089 100644 --- a/test/rt/testbmk.c +++ b/test/rt/testbmk.c @@ -312,7 +312,11 @@ static void bmk6_execute(void) { test_wait_tick();
test_start_timer(1000);
do {
+#if CH_CFG_USE_REGISTRY
+ chThdRelease(chThdCreateStatic(wap, WA_SIZE, prio, thread1, NULL));
+#else
chThdCreateStatic(wap, WA_SIZE, prio, thread1, NULL);
+#endif
n++;
#if defined(SIMULATOR)
_sim_check_for_interrupts();
|