aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-01 13:34:51 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-01 13:34:51 +0000
commit0d7787542b2754010de8b4d0419f3b7ab85422f6 (patch)
treeb7f29758eadf756cd0ea67103a499b9778c11494 /test
parentc989a8967cdcbd54109d686678936a3581fd2c70 (diff)
downloadChibiOS-0d7787542b2754010de8b4d0419f3b7ab85422f6.tar.gz
ChibiOS-0d7787542b2754010de8b4d0419f3b7ab85422f6.tar.bz2
ChibiOS-0d7787542b2754010de8b4d0419f3b7ab85422f6.zip
Small fixes to the test suite.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@928 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r--test/testevt.c6
-rw-r--r--test/testmtx.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/test/testevt.c b/test/testevt.c
index 1ac8b76c8..db486601e 100644
--- a/test/testevt.c
+++ b/test/testevt.c
@@ -207,7 +207,6 @@ static void evt3_execute(void) {
test_assert(5, m == 0, "spurious event");
m = chEvtWaitAllTimeout(ALL_EVENTS, 10);
test_assert(6, m == 0, "spurious event");
-#endif
}
const struct testcase testevt3 = {
@@ -216,8 +215,7 @@ const struct testcase testevt3 = {
NULL,
evt3_execute
};
-
-#endif /* CH_USE_EVENTS */
+#endif /* CH_USE_EVENTS_TIMEOUT */
/*
* Test sequence for events pattern.
@@ -232,3 +230,5 @@ const struct testcase * const patternevt[] = {
#endif
NULL
};
+
+#endif /* CH_USE_EVENTS */
diff --git a/test/testmtx.c b/test/testmtx.c
index f3023b87d..ddc32e7d5 100644
--- a/test/testmtx.c
+++ b/test/testmtx.c
@@ -428,7 +428,11 @@ static msg_t thread11(void *p) {
chMtxLock(&m2);
chMtxLock(&m1);
+#if CH_USE_CONDVARS_TIMEOUT
chCondWaitTimeout(&c1, TIME_INFINITE);
+#else
+ chCondWait(&c1);
+#endif
test_emit_token(*(char *)p);
chMtxUnlock();
chMtxUnlock();