diff options
Diffstat (limited to 'test/testdyn.c')
-rw-r--r-- | test/testdyn.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/test/testdyn.c b/test/testdyn.c index 345076828..4bd4ed06c 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -78,11 +78,6 @@ static msg_t thread(void *p) { }
#if CH_USE_HEAP
-static char *dyn1_gettest(void) {
-
- return "Dynamic APIs, threads creation from heap";
-}
-
static void dyn1_setup(void) {
chHeapInit(&heap1, test.buffer, sizeof(union test_buffers));
@@ -123,7 +118,7 @@ static void dyn1_execute(void) { }
const struct testcase testdyn1 = {
- dyn1_gettest,
+ "Dynamic APIs, threads creation from heap",
dyn1_setup,
NULL,
dyn1_execute
@@ -141,11 +136,6 @@ const struct testcase testdyn1 = { * one to fail.
*/
-static char *dyn2_gettest(void) {
-
- return "Dynamic APIs, threads creation from memory pool";
-}
-
static void dyn2_setup(void) {
chPoolInit(&mp1, THD_WA_SIZE(THREADS_STACK_SIZE), NULL);
@@ -184,7 +174,7 @@ static void dyn2_execute(void) { }
const struct testcase testdyn2 = {
- dyn2_gettest,
+ "Dynamic APIs, threads creation from memory pool",
dyn2_setup,
NULL,
dyn2_execute
@@ -212,11 +202,6 @@ static unsigned regscan(void) { return i;
}
-static char *dyn3_gettest(void) {
-
- return "Dynamic APIs, registry and references";
-}
-
static void dyn3_setup(void) {
chHeapInit(&heap1, test.buffer, sizeof(union test_buffers));
@@ -256,7 +241,7 @@ static void dyn3_execute(void) { }
const struct testcase testdyn3 = {
- dyn3_gettest,
+ "Dynamic APIs, registry and references",
dyn3_setup,
NULL,
dyn3_execute
|