From 84e044f176cee7c6946b24c36c90f63534b5b369 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 19 Jul 2013 12:22:31 +0000 Subject: Renamed Thread to thread_t. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@5995 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testdyn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/testdyn.c') diff --git a/test/testdyn.c b/test/testdyn.c index 8e54c81a1..ebfb00a4b 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -188,8 +188,8 @@ ROMCONST struct testcase testdyn2 = { * coverage. */ -static bool_t regfind(Thread *tp) { - Thread *ftp; +static bool_t regfind(thread_t *tp) { + thread_t *ftp; bool_t found = FALSE; ftp = chRegFirstThread(); @@ -206,7 +206,7 @@ static void dyn3_setup(void) { } static void dyn3_execute(void) { - Thread *tp; + thread_t *tp; tprio_t prio = chThdGetPriority(); /* Testing references increase/decrease and final detach.*/ -- cgit v1.2.3 From 25ddb1c801f06a3be7171e20dcfd46d11a75f112 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 19 Jul 2013 14:51:35 +0000 Subject: First cleanup pass finished, queues and streams not yet removed. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@5999 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testdyn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/testdyn.c') diff --git a/test/testdyn.c b/test/testdyn.c index ebfb00a4b..15664ee07 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -51,10 +51,10 @@ #if CH_USE_DYNAMIC || defined(__DOXYGEN__) #if (CH_USE_HEAP && !CH_USE_MALLOC_HEAP) || defined(__DOXYGEN__) -static MemoryHeap heap1; +static memory_heap_t heap1; #endif #if CH_USE_MEMPOOLS || defined(__DOXYGEN__) -static MemoryPool mp1; +static memory_pool_t mp1; #endif /** -- cgit v1.2.3 From 390ed322cb8f40cb9250021cde5f48acb928d291 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 20 Jul 2013 07:24:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6001 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testdyn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/testdyn.c') diff --git a/test/testdyn.c b/test/testdyn.c index 15664ee07..3f157686d 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -77,7 +77,7 @@ static msg_t thread(void *p) { #if (CH_USE_HEAP && !CH_USE_MALLOC_HEAP) || defined(__DOXYGEN__) static void dyn1_setup(void) { - chHeapInit(&heap1, test.buffer, sizeof(union test_buffers)); + chHeapObjectInit(&heap1, test.buffer, sizeof(union test_buffers)); } static void dyn1_execute(void) { @@ -135,7 +135,7 @@ ROMCONST struct testcase testdyn1 = { static void dyn2_setup(void) { - chPoolInit(&mp1, THD_WA_SIZE(THREADS_STACK_SIZE), NULL); + chPoolObjectInit(&mp1, THD_WA_SIZE(THREADS_STACK_SIZE), NULL); } static void dyn2_execute(void) { @@ -202,7 +202,7 @@ static bool_t regfind(thread_t *tp) { static void dyn3_setup(void) { - chHeapInit(&heap1, test.buffer, sizeof(union test_buffers)); + chHeapObjectInit(&heap1, test.buffer, sizeof(union test_buffers)); } static void dyn3_execute(void) { -- cgit v1.2.3 From 49d71a01abeefa000a4cd7a556052d826b096d49 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 20 Jul 2013 10:12:44 +0000 Subject: Renamed or added prefix to all hernel configuration options. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6010 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testdyn.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'test/testdyn.c') diff --git a/test/testdyn.c b/test/testdyn.c index 3f157686d..31fd0c005 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -31,9 +31,9 @@ * *

Preconditions

* The module requires the following kernel options: - * - @p CH_USE_DYNAMIC - * - @p CH_USE_HEAP - * - @p CH_USE_MEMPOOLS + * - @p CH_CFG_USE_DYNAMIC + * - @p CH_CFG_USE_HEAP + * - @p CH_CFG_USE_MEMPOOLS * . * In case some of the required options are not enabled then some or all tests * may be skipped. @@ -49,11 +49,11 @@ * @brief Dynamic thread APIs test header file */ -#if CH_USE_DYNAMIC || defined(__DOXYGEN__) -#if (CH_USE_HEAP && !CH_USE_MALLOC_HEAP) || defined(__DOXYGEN__) +#if CH_CFG_USE_DYNAMIC || defined(__DOXYGEN__) +#if (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP) || defined(__DOXYGEN__) static memory_heap_t heap1; #endif -#if CH_USE_MEMPOOLS || defined(__DOXYGEN__) +#if CH_CFG_USE_MEMPOOLS || defined(__DOXYGEN__) static memory_pool_t mp1; #endif @@ -74,7 +74,7 @@ static msg_t thread(void *p) { return 0; } -#if (CH_USE_HEAP && !CH_USE_MALLOC_HEAP) || defined(__DOXYGEN__) +#if (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP) || defined(__DOXYGEN__) static void dyn1_setup(void) { chHeapObjectInit(&heap1, test.buffer, sizeof(union test_buffers)); @@ -120,9 +120,9 @@ ROMCONST struct testcase testdyn1 = { NULL, dyn1_execute }; -#endif /* (CH_USE_HEAP && !CH_USE_MALLOC_HEAP) */ +#endif /* (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP) */ -#if CH_USE_MEMPOOLS || defined(__DOXYGEN__) +#if CH_CFG_USE_MEMPOOLS || defined(__DOXYGEN__) /** * @page test_dynamic_002 Threads creation from Memory Pool * @@ -176,9 +176,9 @@ ROMCONST struct testcase testdyn2 = { NULL, dyn2_execute }; -#endif /* CH_USE_MEMPOOLS */ +#endif /* CH_CFG_USE_MEMPOOLS */ -#if (CH_USE_HEAP && !CH_USE_MALLOC_HEAP && CH_USE_REGISTRY) || \ +#if (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP && CH_CFG_USE_REGISTRY) || \ defined(__DOXYGEN__) /** * @page test_dynamic_003 Registry and References test @@ -241,21 +241,21 @@ ROMCONST struct testcase testdyn3 = { NULL, dyn3_execute }; -#endif /* CH_USE_HEAP && CH_USE_REGISTRY */ -#endif /* CH_USE_DYNAMIC */ +#endif /* CH_CFG_USE_HEAP && CH_CFG_USE_REGISTRY */ +#endif /* CH_CFG_USE_DYNAMIC */ /** * @brief Test sequence for dynamic APIs. */ ROMCONST struct testcase * ROMCONST patterndyn[] = { -#if CH_USE_DYNAMIC || defined(__DOXYGEN__) -#if (CH_USE_HEAP && !CH_USE_MALLOC_HEAP) || defined(__DOXYGEN__) +#if CH_CFG_USE_DYNAMIC || defined(__DOXYGEN__) +#if (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP) || defined(__DOXYGEN__) &testdyn1, #endif -#if CH_USE_MEMPOOLS || defined(__DOXYGEN__) +#if CH_CFG_USE_MEMPOOLS || defined(__DOXYGEN__) &testdyn2, #endif -#if (CH_USE_HEAP && !CH_USE_MALLOC_HEAP && CH_USE_REGISTRY) || \ +#if (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP && CH_CFG_USE_REGISTRY) || \ defined(__DOXYGEN__) &testdyn3, #endif -- cgit v1.2.3 From 40f413d3c97a7694703938cd031ce15912b29ff7 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 24 Jul 2013 14:54:26 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6025 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testdyn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/testdyn.c') diff --git a/test/testdyn.c b/test/testdyn.c index 31fd0c005..7ba281e31 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -224,11 +224,11 @@ static void dyn3_execute(void) { /* Detach and let the thread execute and terminate.*/ chThdRelease(tp); test_assert(6, tp->p_refs == 0, "detach failure"); - test_assert(7, tp->p_state == THD_STATE_READY, "invalid state"); + test_assert(7, tp->p_state == CH_STATE_READY, "invalid state"); test_assert(8, regfind(tp), "thread disappeared"); test_assert(9, regfind(tp), "thread disappeared"); chThdSleepMilliseconds(50); /* The thread just terminates. */ - test_assert(10, tp->p_state == THD_STATE_FINAL, "invalid state"); + test_assert(10, tp->p_state == CH_STATE_FINAL, "invalid state"); /* Clearing the zombie by scanning the registry.*/ test_assert(11, regfind(tp), "thread disappeared"); -- cgit v1.2.3 From bfa3ba9f00d263a15d6d6b2dec2aa0b81058df27 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 16 Aug 2013 17:41:56 +0000 Subject: Turned more macros in inline functions. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6166 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testdyn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/testdyn.c') diff --git a/test/testdyn.c b/test/testdyn.c index 7ba281e31..3eb3304d5 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -83,7 +83,7 @@ static void dyn1_setup(void) { static void dyn1_execute(void) { size_t n, sz; void *p1; - tprio_t prio = chThdGetPriority(); + tprio_t prio = chThdGetPriorityX(); (void)chHeapStatus(&heap1, &sz); /* Starting threads from the heap. */ @@ -140,7 +140,7 @@ static void dyn2_setup(void) { static void dyn2_execute(void) { int i; - tprio_t prio = chThdGetPriority(); + tprio_t prio = chThdGetPriorityX(); /* Adding the WAs to the pool. */ for (i = 0; i < 4; i++) @@ -207,7 +207,7 @@ static void dyn3_setup(void) { static void dyn3_execute(void) { thread_t *tp; - tprio_t prio = chThdGetPriority(); + tprio_t prio = chThdGetPriorityX(); /* Testing references increase/decrease and final detach.*/ tp = chThdCreateFromHeap(&heap1, WA_SIZE, prio-1, thread, "A"); -- cgit v1.2.3 From 9d0c6fb8bf7bf63c137d7c19fdefc7760d2f133a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 3 Sep 2013 08:48:20 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6250 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testdyn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/testdyn.c') diff --git a/test/testdyn.c b/test/testdyn.c index 3eb3304d5..cd73e73ce 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -188,9 +188,9 @@ ROMCONST struct testcase testdyn2 = { * coverage. */ -static bool_t regfind(thread_t *tp) { +static bool regfind(thread_t *tp) { thread_t *ftp; - bool_t found = FALSE; + bool found = false; ftp = chRegFirstThread(); do { -- cgit v1.2.3 From 3368f57424db121a96207e9ee6f5e9f746d34ca6 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 3 Sep 2013 09:51:32 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6251 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testdyn.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'test/testdyn.c') diff --git a/test/testdyn.c b/test/testdyn.c index cd73e73ce..bf9f127a0 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -87,14 +87,17 @@ static void dyn1_execute(void) { (void)chHeapStatus(&heap1, &sz); /* Starting threads from the heap. */ - threads[0] = chThdCreateFromHeap(&heap1, THD_WA_SIZE(THREADS_STACK_SIZE), + threads[0] = chThdCreateFromHeap(&heap1, + THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE), prio-1, thread, "A"); - threads[1] = chThdCreateFromHeap(&heap1, THD_WA_SIZE(THREADS_STACK_SIZE), + threads[1] = chThdCreateFromHeap(&heap1, + THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE), prio-2, thread, "B"); /* Allocating the whole heap in order to make the thread creation fail.*/ (void)chHeapStatus(&heap1, &n); p1 = chHeapAlloc(&heap1, n); - threads[2] = chThdCreateFromHeap(&heap1, THD_WA_SIZE(THREADS_STACK_SIZE), + threads[2] = chThdCreateFromHeap(&heap1, + THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE), prio-3, thread, "C"); chHeapFree(p1); @@ -135,7 +138,7 @@ ROMCONST struct testcase testdyn1 = { static void dyn2_setup(void) { - chPoolObjectInit(&mp1, THD_WA_SIZE(THREADS_STACK_SIZE), NULL); + chPoolObjectInit(&mp1, THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE), NULL); } static void dyn2_execute(void) { -- cgit v1.2.3 From 7a62416558fc56fdfcf45786102e60f1a314fe77 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 11 Feb 2014 13:08:02 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6704 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testdyn.c | 267 --------------------------------------------------------- 1 file changed, 267 deletions(-) delete mode 100644 test/testdyn.c (limited to 'test/testdyn.c') diff --git a/test/testdyn.c b/test/testdyn.c deleted file mode 100644 index bf9f127a0..000000000 --- a/test/testdyn.c +++ /dev/null @@ -1,267 +0,0 @@ -/* - ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -#include "ch.h" -#include "test.h" - -/** - * @page test_dynamic Dynamic APIs test - * - * File: @ref testdyn.c - * - *

Description

- * This module implements the test sequence for the dynamic thread creation - * APIs. - * - *

Objective

- * Objective of the test module is to cover 100% of the dynamic APIs code. - * - *

Preconditions

- * The module requires the following kernel options: - * - @p CH_CFG_USE_DYNAMIC - * - @p CH_CFG_USE_HEAP - * - @p CH_CFG_USE_MEMPOOLS - * . - * In case some of the required options are not enabled then some or all tests - * may be skipped. - * - *

Test Cases

- * - @subpage test_dynamic_001 - * - @subpage test_dynamic_002 - * - @subpage test_dynamic_003 - * . - * @file testdyn.c - * @brief Dynamic thread APIs test source file - * @file testdyn.h - * @brief Dynamic thread APIs test header file - */ - -#if CH_CFG_USE_DYNAMIC || defined(__DOXYGEN__) -#if (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP) || defined(__DOXYGEN__) -static memory_heap_t heap1; -#endif -#if CH_CFG_USE_MEMPOOLS || defined(__DOXYGEN__) -static memory_pool_t mp1; -#endif - -/** - * @page test_dynamic_001 Threads creation from Memory Heap - * - *

Description

- * Two threads are started by allocating the memory from the Memory Heap then - * the remaining heap space is arbitrarily allocated and a third tread startup - * is attempted.
- * The test expects the first two threads to successfully start and the last - * one to fail. - */ - -static msg_t thread(void *p) { - - test_emit_token(*(char *)p); - return 0; -} - -#if (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP) || defined(__DOXYGEN__) -static void dyn1_setup(void) { - - chHeapObjectInit(&heap1, test.buffer, sizeof(union test_buffers)); -} - -static void dyn1_execute(void) { - size_t n, sz; - void *p1; - tprio_t prio = chThdGetPriorityX(); - - (void)chHeapStatus(&heap1, &sz); - /* Starting threads from the heap. */ - threads[0] = chThdCreateFromHeap(&heap1, - THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE), - prio-1, thread, "A"); - threads[1] = chThdCreateFromHeap(&heap1, - THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE), - prio-2, thread, "B"); - /* Allocating the whole heap in order to make the thread creation fail.*/ - (void)chHeapStatus(&heap1, &n); - p1 = chHeapAlloc(&heap1, n); - threads[2] = chThdCreateFromHeap(&heap1, - THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE), - prio-3, thread, "C"); - chHeapFree(p1); - - test_assert(1, (threads[0] != NULL) && - (threads[1] != NULL) && - (threads[2] == NULL) && - (threads[3] == NULL) && - (threads[4] == NULL), - "thread creation failed"); - - /* Claiming the memory from terminated threads. */ - test_wait_threads(); - test_assert_sequence(2, "AB"); - - /* Heap status checked again.*/ - test_assert(3, chHeapStatus(&heap1, &n) == 1, "heap fragmented"); - test_assert(4, n == sz, "heap size changed"); -} - -ROMCONST struct testcase testdyn1 = { - "Dynamic APIs, threads creation from heap", - dyn1_setup, - NULL, - dyn1_execute -}; -#endif /* (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP) */ - -#if CH_CFG_USE_MEMPOOLS || defined(__DOXYGEN__) -/** - * @page test_dynamic_002 Threads creation from Memory Pool - * - *

Description

- * Five thread creation are attempted from a pool containing only four - * elements.
- * The test expects the first four threads to successfully start and the last - * one to fail. - */ - -static void dyn2_setup(void) { - - chPoolObjectInit(&mp1, THD_WORKING_AREA_SIZE(THREADS_STACK_SIZE), NULL); -} - -static void dyn2_execute(void) { - int i; - tprio_t prio = chThdGetPriorityX(); - - /* Adding the WAs to the pool. */ - for (i = 0; i < 4; i++) - chPoolFree(&mp1, wa[i]); - - /* Starting threads from the memory pool. */ - threads[0] = chThdCreateFromMemoryPool(&mp1, prio-1, thread, "A"); - threads[1] = chThdCreateFromMemoryPool(&mp1, prio-2, thread, "B"); - threads[2] = chThdCreateFromMemoryPool(&mp1, prio-3, thread, "C"); - threads[3] = chThdCreateFromMemoryPool(&mp1, prio-4, thread, "D"); - threads[4] = chThdCreateFromMemoryPool(&mp1, prio-5, thread, "E"); - - test_assert(1, (threads[0] != NULL) && - (threads[1] != NULL) && - (threads[2] != NULL) && - (threads[3] != NULL) && - (threads[4] == NULL), - "thread creation failed"); - - /* Claiming the memory from terminated threads. */ - test_wait_threads(); - test_assert_sequence(2, "ABCD"); - - /* Now the pool must be full again. */ - for (i = 0; i < 4; i++) - test_assert(3, chPoolAlloc(&mp1) != NULL, "pool list empty"); - test_assert(4, chPoolAlloc(&mp1) == NULL, "pool list not empty"); -} - -ROMCONST struct testcase testdyn2 = { - "Dynamic APIs, threads creation from memory pool", - dyn2_setup, - NULL, - dyn2_execute -}; -#endif /* CH_CFG_USE_MEMPOOLS */ - -#if (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP && CH_CFG_USE_REGISTRY) || \ - defined(__DOXYGEN__) -/** - * @page test_dynamic_003 Registry and References test - * - *

Description

- * Registry and Thread References APIs are tested for functionality and - * coverage. - */ - -static bool regfind(thread_t *tp) { - thread_t *ftp; - bool found = false; - - ftp = chRegFirstThread(); - do { - found |= ftp == tp; - ftp = chRegNextThread(ftp); - } while (ftp != NULL); - return found; -} - -static void dyn3_setup(void) { - - chHeapObjectInit(&heap1, test.buffer, sizeof(union test_buffers)); -} - -static void dyn3_execute(void) { - thread_t *tp; - tprio_t prio = chThdGetPriorityX(); - - /* Testing references increase/decrease and final detach.*/ - tp = chThdCreateFromHeap(&heap1, WA_SIZE, prio-1, thread, "A"); - test_assert(1, tp->p_refs == 1, "wrong initial reference counter"); - chThdAddRef(tp); - test_assert(2, tp->p_refs == 2, "references increase failure"); - chThdRelease(tp); - test_assert(3, tp->p_refs == 1, "references decrease failure"); - - /* Verify the new threads count.*/ - test_assert(4, regfind(tp), "thread missing from registry"); - test_assert(5, regfind(tp), "thread disappeared"); - - /* Detach and let the thread execute and terminate.*/ - chThdRelease(tp); - test_assert(6, tp->p_refs == 0, "detach failure"); - test_assert(7, tp->p_state == CH_STATE_READY, "invalid state"); - test_assert(8, regfind(tp), "thread disappeared"); - test_assert(9, regfind(tp), "thread disappeared"); - chThdSleepMilliseconds(50); /* The thread just terminates. */ - test_assert(10, tp->p_state == CH_STATE_FINAL, "invalid state"); - - /* Clearing the zombie by scanning the registry.*/ - test_assert(11, regfind(tp), "thread disappeared"); - test_assert(12, !regfind(tp), "thread still in registry"); -} - -ROMCONST struct testcase testdyn3 = { - "Dynamic APIs, registry and references", - dyn3_setup, - NULL, - dyn3_execute -}; -#endif /* CH_CFG_USE_HEAP && CH_CFG_USE_REGISTRY */ -#endif /* CH_CFG_USE_DYNAMIC */ - -/** - * @brief Test sequence for dynamic APIs. - */ -ROMCONST struct testcase * ROMCONST patterndyn[] = { -#if CH_CFG_USE_DYNAMIC || defined(__DOXYGEN__) -#if (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP) || defined(__DOXYGEN__) - &testdyn1, -#endif -#if CH_CFG_USE_MEMPOOLS || defined(__DOXYGEN__) - &testdyn2, -#endif -#if (CH_CFG_USE_HEAP && !CH_CFG_USE_MALLOC_HEAP && CH_CFG_USE_REGISTRY) || \ - defined(__DOXYGEN__) - &testdyn3, -#endif -#endif - NULL -}; -- cgit v1.2.3