mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
2009-03-02 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1388/cpukit * sp09/screen05.c, sp09/screen09.c, sp09/sp09.scn: Classic Semaphores allow both priority inherit and ceiling attributes to be set on semaphore create. These attributes are mutually exclusive and this should be an error.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2009-03-02 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1388/cpukit
|
||||
* sp09/screen05.c, sp09/screen09.c, sp09/sp09.scn: Classic Semaphores
|
||||
allow both priority inherit and ceiling attributes to be set on
|
||||
semaphore create. These attributes are mutually exclusive and this
|
||||
should be an error.
|
||||
|
||||
2009-01-21 Nickolay Kolchin <nbkolchin@gmail.com>
|
||||
Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Output parameters: NONE
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -85,7 +85,37 @@ void Screen5()
|
||||
RTEMS_NOT_DEFINED,
|
||||
"rtems_semaphore_create of RTEMS_FIFO RTEMS_INHERIT_PRIORITY"
|
||||
);
|
||||
puts( "TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED" );
|
||||
puts( "TA1 - rtems_semaphore_create - FIFO and inherit - RTEMS_NOT_DEFINED" );
|
||||
|
||||
status = rtems_semaphore_create(
|
||||
Semaphore_name[ 1 ],
|
||||
1,
|
||||
RTEMS_PRIORITY_CEILING | RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
|
||||
RTEMS_NO_PRIORITY,
|
||||
&Junk_id
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_NOT_DEFINED,
|
||||
"rtems_semaphore_create of RTEMS_FIFO RTEMS_CEILING_PRIORITY"
|
||||
);
|
||||
puts( "TA1 - rtems_semaphore_create - FIFO and ceiling - RTEMS_NOT_DEFINED" );
|
||||
|
||||
status = rtems_semaphore_create(
|
||||
Semaphore_name[ 1 ],
|
||||
1,
|
||||
RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY_CEILING |
|
||||
RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY,
|
||||
10,
|
||||
&Junk_id
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_NOT_DEFINED,
|
||||
"rtems_semaphore_create of binary with ceiling and inherit"
|
||||
);
|
||||
puts(
|
||||
"TA1 - rtems_semaphore_create - ceiling and inherit - RTEMS_NOT_DEFINED" );
|
||||
|
||||
status = rtems_semaphore_create(
|
||||
Semaphore_name[ 1 ],
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Output parameters: NONE
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
|
||||
@@ -67,7 +67,9 @@ TA1 - rtems_semaphore_create - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_semaphore_create - 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_semaphore_create - 2 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_semaphore_create - 3 - RTEMS_TOO_MANY
|
||||
TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_semaphore_create - FIFO and inherit - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_semaphore_create - FIFO and ceiling - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_semaphore_create - ceiling and inherit - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER
|
||||
TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED
|
||||
|
||||
Reference in New Issue
Block a user