diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-11-20 23:18:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-11-20 23:18:37 +0000 |
commit | 161d1582099c9a6b8eeb179f6fcad940a85ba85b (patch) | |
tree | fbaf10b111459c7713f96b3c6a49788924acb0cc | |
parent | 2006-11-20 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-161d1582099c9a6b8eeb179f6fcad940a85ba85b.tar.bz2 |
2006-11-20 Joel Sherrill <joel@OARcorp.com>
* sp27/init.c, sp27/sp27.scn: Correct configured number of semaphores
and make output more compliant with other tests.
-rw-r--r-- | testsuites/sptests/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/sptests/sp27/init.c | 12 | ||||
-rw-r--r-- | testsuites/sptests/sp27/sp27.scn | 6 |
3 files changed, 18 insertions, 5 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index c17376e200..d8596e613d 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,3 +1,8 @@ +2006-11-20 Joel Sherrill <joel@OARcorp.com> + + * sp27/init.c, sp27/sp27.scn: Correct configured number of semaphores + and make output more compliant with other tests. + 2006-11-17 Joel Sherrill <joel@OARcorp.com> * sp09/screen12.c, sp16/task2.c, sp16/task3.c: Ensure tests generate diff --git a/testsuites/sptests/sp27/init.c b/testsuites/sptests/sp27/init.c index e514f686a9..d617fbf850 100644 --- a/testsuites/sptests/sp27/init.c +++ b/testsuites/sptests/sp27/init.c @@ -14,6 +14,7 @@ rtems_task Init (rtems_task_argument argument); #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER #define CONFIGURE_MAXIMUM_TASKS 6 +#define CONFIGURE_MAXIMUM_SEMAPHORES 1 #define CONFIGURE_MICROSECONDS_PER_TICK 52429 @@ -76,11 +77,14 @@ Init (rtems_task_argument ignored) int pass, i; rtems_status_code sc; - puts("**** Semaphore flush test ****"); + puts( "\n\n*** TEST 27 ***" ); + puts("Testing semaphore flush"); sc = rtems_semaphore_create ( rtems_build_name ('S', 'E', 'M', 'F'), 0, - RTEMS_LOCAL|RTEMS_BINARY_SEMAPHORE|RTEMS_NO_INHERIT_PRIORITY|RTEMS_NO_PRIORITY_CEILING|RTEMS_FIFO, + RTEMS_LOCAL| + RTEMS_BINARY_SEMAPHORE|RTEMS_NO_INHERIT_PRIORITY| + RTEMS_NO_PRIORITY_CEILING|RTEMS_FIFO, 0, &semaphore); if (sc != RTEMS_SUCCESSFUL) { @@ -101,6 +105,8 @@ Init (rtems_task_argument ignored) exit (1); } } - puts ("**** Semaphore flush test succeeded ****"); + printf ("Flushed all waiting tasks\n", NTASK ); + puts( "*** END OF TEST 27 ***" ); + exit (1); } diff --git a/testsuites/sptests/sp27/sp27.scn b/testsuites/sptests/sp27/sp27.scn index 7c1c36e95e..7b914bf614 100644 --- a/testsuites/sptests/sp27/sp27.scn +++ b/testsuites/sptests/sp27/sp27.scn @@ -1,2 +1,4 @@ -**** Semaphore flush test **** -**** Semaphore flush test succeeded **** +*** TEST 27 *** +Testing semaphore flush +Flushed all waiting tasks +*** END OF TEST 27 *** |