From c338ae2b6b6a3cf00b452de1525beac5a5660a52 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 20 Nov 2006 23:18:45 +0000 Subject: 2006-11-20 Joel Sherrill * sp27/init.c, sp27/sp27.scn: Correct configured number of semaphores and make output more compliant with other tests. --- testsuites/sptests/ChangeLog | 5 +++++ testsuites/sptests/sp27/init.c | 12 +++++++++--- testsuites/sptests/sp27/sp27.scn | 6 ++++-- 3 files changed, 18 insertions(+), 5 deletions(-) (limited to 'testsuites') diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index b8d981c7ae..1c3d5aeae4 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,3 +1,8 @@ +2006-11-20 Joel Sherrill + + * sp27/init.c, sp27/sp27.scn: Correct configured number of semaphores + and make output more compliant with other tests. + 2006-11-17 Joel Sherrill * 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 *** -- cgit v1.2.3