diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-03-13 20:29:04 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-03-13 20:29:04 +0000 |
commit | b4357c2bf7e538ec6513892555c5cf0968b95efe (patch) | |
tree | 12e96df0db52fa11c33e8e26c144efc18617134f /test | |
parent | 0873929b10edf3d2e3ce9e8152bd2cfb22955674 (diff) | |
download | ChibiOS-b4357c2bf7e538ec6513892555c5cf0968b95efe.tar.gz ChibiOS-b4357c2bf7e538ec6513892555c5cf0968b95efe.tar.bz2 ChibiOS-b4357c2bf7e538ec6513892555c5cf0968b95efe.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@843 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r-- | test/testsem.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/testsem.c b/test/testsem.c index cffe8bb69..e6153fa8d 100644 --- a/test/testsem.c +++ b/test/testsem.c @@ -27,10 +27,9 @@ static Semaphore sem1;
-#if !CH_USE_SEMAPHORES_PRIORITY
static char *sem1_gettest(void) {
- return "Semaphores, FIFO enqueuing test";
+ return "Semaphores, enqueuing test";
}
static void sem1_setup(void) {
@@ -58,7 +57,11 @@ static void sem1_execute(void) { chSemSignal(&sem1);
chSemSignal(&sem1);
test_wait_threads();
+#if CH_USE_SEMAPHORES_PRIORITY
+ test_assert_sequence("ADCEB");
+#else
test_assert_sequence("ABCDE");
+#endif
}
const struct testcase testsem1 = {
@@ -67,7 +70,6 @@ const struct testcase testsem1 = { NULL,
sem1_execute
};
-#endif /* CH_USE_SEMAPHORES_PRIORITY */
#if CH_USE_SEMAPHORES_TIMEOUT
static char *sem2_gettest(void) {
@@ -114,9 +116,7 @@ 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
|