aboutsummaryrefslogtreecommitdiffstats
path: root/test/testpools.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/testpools.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/testpools.c')
-rw-r--r--test/testpools.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/test/testpools.c b/test/testpools.c
index 2165c39d1..fae7402c3 100644
--- a/test/testpools.c
+++ b/test/testpools.c
@@ -35,9 +35,6 @@ static void pools1_setup(void) {
chPoolInit(&mp1, THD_WA_SIZE(THREADS_STACK_SIZE));
}
-static void pools1_teardown(void) {
-}
-
static void pools1_execute(void) {
int i;
@@ -56,8 +53,18 @@ static void pools1_execute(void) {
const struct testcase testpools1 = {
pools1_gettest,
pools1_setup,
- pools1_teardown,
+ NULL,
pools1_execute
};
#endif /* CH_USE_MEMPOOLS */
+
+/*
+ * Test sequence for pools pattern.
+ */
+const struct testcase *patternpools[] = {
+#if CH_USE_MEMPOOLS
+ &testpools1,
+#endif
+ NULL
+};