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/testmsg.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'test/testmsg.c') diff --git a/test/testmsg.c b/test/testmsg.c index 735375a16..8af1c29e3 100644 --- a/test/testmsg.c +++ b/test/testmsg.c @@ -21,17 +21,13 @@ #include "test.h" +#if CH_USE_MESSAGES + static char *msg1_gettest(void) { return "Messages, dispatch test"; } -static void msg1_setup(void) { -} - -static void msg1_teardown(void) { -} - static msg_t thread(void *p) { msg_t msg; int i; @@ -59,7 +55,19 @@ static void msg1_execute(void) { const struct testcase testmsg1 = { msg1_gettest, - msg1_setup, - msg1_teardown, + NULL, + NULL, msg1_execute }; + +#endif /* CH_USE_MESSAGES */ + +/* + * Test sequence for messages pattern. + */ +const struct testcase *patternmsg[] = { +#if CH_USE_MESSAGES + &testmsg1, +#endif + NULL +}; -- cgit v1.2.3