aboutsummaryrefslogtreecommitdiffstats
path: root/test/testheap.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-02-16 18:22:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-02-16 18:22:49 +0000
commitdd85cc143d987851bc7cc995cf6109136a16b930 (patch)
tree613d775200cd18e3d72d2ac14a16a96c7eca816e /test/testheap.c
parentcae6f99028cca8d347dc5c2290b7f40a38b91753 (diff)
downloadChibiOS-dd85cc143d987851bc7cc995cf6109136a16b930.tar.gz
ChibiOS-dd85cc143d987851bc7cc995cf6109136a16b930.tar.bz2
ChibiOS-dd85cc143d987851bc7cc995cf6109136a16b930.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@773 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testheap.c')
-rw-r--r--test/testheap.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/testheap.c b/test/testheap.c
index e9907baba..841c084e8 100644
--- a/test/testheap.c
+++ b/test/testheap.c
@@ -30,12 +30,6 @@ static char *heap1_gettest(void) {
return "Heap, allocation and fragmentation test";
}
-static void heap1_setup(void) {
-}
-
-static void heap1_teardown(void) {
-}
-
static void heap1_execute(void) {
void *p1, *p2, *p3;
size_t n, sz;
@@ -75,9 +69,19 @@ static void heap1_execute(void) {
const struct testcase testheap1 = {
heap1_gettest,
- heap1_setup,
- heap1_teardown,
+ NULL,
+ NULL,
heap1_execute
};
#endif /* CH_USE_HEAP */
+
+/*
+ * Test sequence for heap pattern.
+ */
+const struct testcase *patternheap[] = {
+#if CH_USE_HEAP
+ &testheap1,
+#endif
+ NULL
+};