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