aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdyn.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-23 18:34:51 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-23 18:34:51 +0000
commit56c0992fe6abb5b06f74f8518eb07b9bc63eac99 (patch)
tree55350f8ad9bbf34cb11bb61f497c06f6eb2615a8 /test/testdyn.c
parent7fdee68e5bf8c080cd0a79942cc5675ed0c71e58 (diff)
downloadChibiOS-56c0992fe6abb5b06f74f8518eb07b9bc63eac99.tar.gz
ChibiOS-56c0992fe6abb5b06f74f8518eb07b9bc63eac99.tar.bz2
ChibiOS-56c0992fe6abb5b06f74f8518eb07b9bc63eac99.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@440 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testdyn.c')
-rw-r--r--test/testdyn.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/testdyn.c b/test/testdyn.c
index f7b9e3107..0751e052a 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 < MAX_THREADS; i++)
+ for (i = 0; i < 5; i++)
chPoolFree(&mp1, wa[i]);
/* Starting threads from the memory pool. */
@@ -120,7 +120,9 @@ static void dyn2_execute(void) {
test_wait_threads();
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");
}