diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-02-18 12:58:35 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-02-18 12:58:35 +0000 |
commit | 4c2be4a8e9211f53e3b460de2ad5e9d3e4be70c8 (patch) | |
tree | ff9d69f7b2528008d5410895cf979cf158e918fb /test/testdyn.c | |
parent | 6b6e5b95fb78af5f4c018c74b54b15a82b32d812 (diff) | |
download | ChibiOS-4c2be4a8e9211f53e3b460de2ad5e9d3e4be70c8.tar.gz ChibiOS-4c2be4a8e9211f53e3b460de2ad5e9d3e4be70c8.tar.bz2 ChibiOS-4c2be4a8e9211f53e3b460de2ad5e9d3e4be70c8.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@781 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testdyn.c')
-rw-r--r-- | test/testdyn.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/testdyn.c b/test/testdyn.c index 07b07594c..775e3c795 100644 --- a/test/testdyn.c +++ b/test/testdyn.c @@ -52,15 +52,15 @@ static void dyn1_execute(void) { (threads[2] == NULL) &&
(threads[3] == NULL) &&
(threads[4] == NULL),
- "thread creation failed");
+ "#1"); /* Thread creation failed.*/
/* Claiming the memory from terminated threads. */
test_wait_threads();
test_assert_sequence("AB");
/* Heap status checked again.*/
- test_assert(chHeapStatus(&n) == 1, "heap fragmented");
- test_assert(n == sz, "heap size changed");
+ test_assert(chHeapStatus(&n) == 1, "#2"); /* Heap fragmented.*/
+ test_assert(n == sz, "#3"); /* Heap size changed.*/
}
}
@@ -105,7 +105,7 @@ static void dyn2_execute(void) { (threads[2] != NULL) &&
(threads[3] != NULL) &&
(threads[4] != NULL),
- "thread creation failed");
+ "#1"); /* Thread creation failed.*/
/* Claiming the memory from terminated threads. */
test_wait_threads();
@@ -113,8 +113,8 @@ static void dyn2_execute(void) { /* 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, "#2"); /* Pool list empty.*/
+ test_assert(chPoolAlloc(&mp1) == NULL, "#3"); /* Pool list not empty.*/
}
const struct testcase testdyn2 = {
|