git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@440 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2008-09-23 18:34:51 +00:00
parent 7fdee68e5b
commit 56c0992fe6
1 changed files with 4 additions and 2 deletions

View File

@ -99,7 +99,7 @@ static void dyn2_execute(void) {
tprio_t prio = chThdGetPriority(); tprio_t prio = chThdGetPriority();
/* Adding the WAs to the pool. */ /* Adding the WAs to the pool. */
for (i = 0; i < MAX_THREADS; i++) for (i = 0; i < 5; i++)
chPoolFree(&mp1, wa[i]); chPoolFree(&mp1, wa[i]);
/* Starting threads from the memory pool. */ /* Starting threads from the memory pool. */
@ -120,7 +120,9 @@ static void dyn2_execute(void) {
test_wait_threads(); test_wait_threads();
test_assert_sequence("ABCDE"); test_assert_sequence("ABCDE");
/* Now the pool must be empty again. */ /* Now the pool must be full again. */
for (i = 0; i < 5; i++)
test_assert(chPoolAlloc(&mp1) != NULL, "pool list empty");
test_assert(chPoolAlloc(&mp1) == NULL, "pool list not empty"); test_assert(chPoolAlloc(&mp1) == NULL, "pool list not empty");
} }