From dd85cc143d987851bc7cc995cf6109136a16b930 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 16 Feb 2009 18:22:49 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@773 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testheap.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'test/testheap.c') 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 +}; -- cgit v1.2.3