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.
This commit is contained in:
Joel Sherrill
2006-11-20 23:18:37 +00:00
parent c0e38d1b90
commit 161d158209
3 changed files with 18 additions and 5 deletions

View File

@@ -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> 2006-11-17 Joel Sherrill <joel@OARcorp.com>
* sp09/screen12.c, sp16/task2.c, sp16/task3.c: Ensure tests generate * sp09/screen12.c, sp16/task2.c, sp16/task3.c: Ensure tests generate

View File

@@ -14,6 +14,7 @@ rtems_task Init (rtems_task_argument argument);
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 6 #define CONFIGURE_MAXIMUM_TASKS 6
#define CONFIGURE_MAXIMUM_SEMAPHORES 1
#define CONFIGURE_MICROSECONDS_PER_TICK 52429 #define CONFIGURE_MICROSECONDS_PER_TICK 52429
@@ -76,11 +77,14 @@ Init (rtems_task_argument ignored)
int pass, i; int pass, i;
rtems_status_code sc; rtems_status_code sc;
puts("**** Semaphore flush test ****"); puts( "\n\n*** TEST 27 ***" );
puts("Testing semaphore flush");
sc = rtems_semaphore_create ( sc = rtems_semaphore_create (
rtems_build_name ('S', 'E', 'M', 'F'), rtems_build_name ('S', 'E', 'M', 'F'),
0, 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, 0,
&semaphore); &semaphore);
if (sc != RTEMS_SUCCESSFUL) { if (sc != RTEMS_SUCCESSFUL) {
@@ -101,6 +105,8 @@ Init (rtems_task_argument ignored)
exit (1); exit (1);
} }
} }
puts ("**** Semaphore flush test succeeded ****"); printf ("Flushed all waiting tasks\n", NTASK );
puts( "*** END OF TEST 27 ***" );
exit (1); exit (1);
} }

View File

@@ -1,2 +1,4 @@
**** Semaphore flush test **** *** TEST 27 ***
**** Semaphore flush test succeeded **** Testing semaphore flush
Flushed all waiting tasks
*** END OF TEST 27 ***