aboutsummaryrefslogtreecommitdiffstats
path: root/test/testheap.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-08 14:06:45 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-08 14:06:45 +0000
commit3d2fd8eb545182334b672c52acd7b8a06193bedf (patch)
treef537217d1307315a13a7582edd7f9d03df441e12 /test/testheap.c
parentb37209d196026ba07f687c487d53dcbeef1f9223 (diff)
downloadChibiOS-3d2fd8eb545182334b672c52acd7b8a06193bedf.tar.gz
ChibiOS-3d2fd8eb545182334b672c52acd7b8a06193bedf.tar.bz2
ChibiOS-3d2fd8eb545182334b672c52acd7b8a06193bedf.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@951 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testheap.c')
-rw-r--r--test/testheap.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/testheap.c b/test/testheap.c
index fd04353e5..a617c4b68 100644
--- a/test/testheap.c
+++ b/test/testheap.c
@@ -21,10 +21,47 @@
#include "test.h"
+/**
+ * @page test_heap Memory Heap test
+ *
+ * <h2>Description</h2>
+ * This module implements the test sequence for the @ref Heap subsystem.
+ *
+ * <h2>Objective</h2>
+ * Objective of the test module is to cover 100% of the @ref Heap subsystem
+ * code as a necessary step in order to assess its readyness.
+ *
+ * <h2>Preconditions</h2>
+ * The module requires the following kernel options:
+ * - @p CH_USE_HEAP
+ * .
+ * In case some of the required options are not enabled then some or all tests
+ * may be skipped.
+ *
+ * <h2>Test Cases</h2>
+ * - @subpage test_heap_001
+ * .
+ * @file testheap.c
+ * @brief Heap test source file
+ * @file testevt.h
+ * @brief Heap header file
+ */
+
#if CH_USE_HEAP
#define SIZE 16
+/**
+ * @page test_heap_001 Allocation and fragmentation test
+ *
+ * <h2>Description</h2>
+ * Series of allocations/deallocations are performed in carefully designed
+ * sequences in order to stimulate all the possible code paths inside the
+ * allocator.<br>
+ * The test expects to find the heap back to the initial status after each
+ * sequence.
+ */
+
static char *heap1_gettest(void) {
return "Heap, allocation and fragmentation test";