Fixed a test case.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@842 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2009-03-13 20:11:53 +00:00
parent 1b66d4eddd
commit 0873929b10
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,7 @@
static Semaphore sem1; static Semaphore sem1;
#if !CH_USE_SEMAPHORES_PRIORITY
static char *sem1_gettest(void) { static char *sem1_gettest(void) {
return "Semaphores, FIFO enqueuing test"; return "Semaphores, FIFO enqueuing test";
@ -66,6 +67,7 @@ const struct testcase testsem1 = {
NULL, NULL,
sem1_execute sem1_execute
}; };
#endif /* CH_USE_SEMAPHORES_PRIORITY */
#if CH_USE_SEMAPHORES_TIMEOUT #if CH_USE_SEMAPHORES_TIMEOUT
static char *sem2_gettest(void) { static char *sem2_gettest(void) {
@ -112,7 +114,9 @@ const struct testcase testsem2 = {
*/ */
const struct testcase * const patternsem[] = { const struct testcase * const patternsem[] = {
#if CH_USE_SEMAPHORES #if CH_USE_SEMAPHORES
#if !CH_USE_SEMAPHORES_PRIORITY
&testsem1, &testsem1,
#endif
#if CH_USE_SEMAPHORES_TIMEOUT #if CH_USE_SEMAPHORES_TIMEOUT
&testsem2, &testsem2,
#endif #endif