From 7fdee68e5bf8c080cd0a79942cc5675ed0c71e58 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 23 Sep 2008 18:04:28 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@439 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testdyn.c | 2 +- test/testpools.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testdyn.c b/test/testdyn.c index 1f952b6ac..f7b9e3107 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -99,7 +99,7 @@ static void dyn2_execute(void) { tprio_t prio = chThdGetPriority(); /* Adding the WAs to the pool. */ - for (i = 0; i < 5; i++) + for (i = 0; i < MAX_THREADS; i++) chPoolFree(&mp1, wa[i]); /* Starting threads from the memory pool. */ diff --git a/test/testpools.c b/test/testpools.c index 40a31fad7..2d3ee0f00 100644 --- a/test/testpools.c +++ b/test/testpools.c @@ -42,11 +42,11 @@ static void pools1_execute(void) { int i; /* Adding the WAs to the pool. */ - for (i = 0; i < 5; i++) + for (i = 0; i < MAX_THREADS; i++) chPoolFree(&mp1, wa[i]); /* Empting the pool again. */ - for (i = 0; i < 5; i++) + for (i = 0; i < MAX_THREADS; i++) test_assert(chPoolAlloc(&mp1) != NULL, "pool list empty"); /* Now must be empty. */ -- cgit v1.2.3