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/testcond.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/testcond.c')
-rw-r--r-- | test/testcond.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/test/testcond.c b/test/testcond.c index f6f390044..2771b5202 100644 --- a/test/testcond.c +++ b/test/testcond.c @@ -37,9 +37,6 @@ static void cond1_setup(void) { chMtxInit(&m1);
}
-static void cond1_teardown(void) {
-}
-
static msg_t thread1(void *p) {
chMtxLock(&m1);
@@ -71,7 +68,7 @@ static void cond1_execute(void) { const struct testcase testcond1 = {
cond1_gettest,
cond1_setup,
- cond1_teardown,
+ NULL,
cond1_execute
};
@@ -97,9 +94,20 @@ static void cond2_execute(void) { const struct testcase testcond2 = {
cond2_gettest,
- cond1_setup,
- cond1_teardown,
+ NULL,
+ NULL,
cond2_execute
};
-#endif /* defined(CH_USE_CONDVARS) && defined(CH_USE_MUTEXES) */
+#endif /* CH_USE_CONDVARS && CH_USE_MUTEXES */
+
+/*
+ * Test sequence for condvars pattern.
+ */
+const struct testcase *patterncond[] = {
+#if CH_USE_CONDVARS && CH_USE_MUTEXES
+ &testcond1,
+ &testcond2,
+#endif
+ NULL
+};
|