aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-13 20:11:53 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-13 20:11:53 +0000
commit0873929b10edf3d2e3ce9e8152bd2cfb22955674 (patch)
treea2ebb67b8b52492c1d81c2595aa77374269fcd3f
parent1b66d4edddfd059d10f7fb242ee8615fe90a5adf (diff)
downloadChibiOS-0873929b10edf3d2e3ce9e8152bd2cfb22955674.tar.gz
ChibiOS-0873929b10edf3d2e3ce9e8152bd2cfb22955674.tar.bz2
ChibiOS-0873929b10edf3d2e3ce9e8152bd2cfb22955674.zip
Fixed a test case.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@842 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--test/testsem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testsem.c b/test/testsem.c
index e954871d5..cffe8bb69 100644
--- a/test/testsem.c
+++ b/test/testsem.c
@@ -27,6 +27,7 @@
static Semaphore sem1;
+#if !CH_USE_SEMAPHORES_PRIORITY
static char *sem1_gettest(void) {
return "Semaphores, FIFO enqueuing test";
@@ -66,6 +67,7 @@ const struct testcase testsem1 = {
NULL,
sem1_execute
};
+#endif /* CH_USE_SEMAPHORES_PRIORITY */
#if CH_USE_SEMAPHORES_TIMEOUT
static char *sem2_gettest(void) {
@@ -112,7 +114,9 @@ const struct testcase testsem2 = {
*/
const struct testcase * const patternsem[] = {
#if CH_USE_SEMAPHORES
+#if !CH_USE_SEMAPHORES_PRIORITY
&testsem1,
+#endif
#if CH_USE_SEMAPHORES_TIMEOUT
&testsem2,
#endif