diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-02-16 18:22:49 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-02-16 18:22:49 +0000 |
commit | dd85cc143d987851bc7cc995cf6109136a16b930 (patch) | |
tree | 613d775200cd18e3d72d2ac14a16a96c7eca816e /test/testmsg.c | |
parent | cae6f99028cca8d347dc5c2290b7f40a38b91753 (diff) | |
download | ChibiOS-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/testmsg.c')
-rw-r--r-- | test/testmsg.c | 24 |
1 files changed, 16 insertions, 8 deletions
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
+};
|