From ceeef3c918319996786b297b40a43e99e446e2c9 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 16 Mar 2016 09:20:45 +0000 Subject: 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 --- test/rt/testbmk.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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(); -- cgit v1.2.3