diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-03-02 16:13:08 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-03-02 16:13:08 +0000 |
commit | 15fa865c296e80eecc3f90decec822a4483f6125 (patch) | |
tree | 526f1a0a2c2ff554ec9ba834bd8fc34867e5ce62 | |
parent | 2009-03-02 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-15fa865c296e80eecc3f90decec822a4483f6125.tar.bz2 |
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.
-rw-r--r-- | testsuites/sptests/ChangeLog | 8 | ||||
-rw-r--r-- | testsuites/sptests/sp09/screen05.c | 34 | ||||
-rw-r--r-- | testsuites/sptests/sp09/screen09.c | 8 | ||||
-rw-r--r-- | testsuites/sptests/sp09/sp09.scn | 4 |
4 files changed, 44 insertions, 10 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index 6913674a56..42b4de6d19 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -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> diff --git a/testsuites/sptests/sp09/screen05.c b/testsuites/sptests/sp09/screen05.c index b20e96dfb4..635ffac744 100644 --- a/testsuites/sptests/sp09/screen05.c +++ b/testsuites/sptests/sp09/screen05.c @@ -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 ], diff --git a/testsuites/sptests/sp09/screen09.c b/testsuites/sptests/sp09/screen09.c index d02c929fb1..8eba69a4b2 100644 --- a/testsuites/sptests/sp09/screen09.c +++ b/testsuites/sptests/sp09/screen09.c @@ -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 @@ -24,12 +24,6 @@ void Screen9() rtems_status_code status; rtems_isr_entry old_service_routine; -#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) - puts( "TRUE" ); -#else - puts( "FALSE" ); -#endif - #if ((CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE) || \ defined(_C3x) || defined(_C4x)) puts( diff --git a/testsuites/sptests/sp09/sp09.scn b/testsuites/sptests/sp09/sp09.scn index fa92e4889c..e334f5b74d 100644 --- a/testsuites/sptests/sp09/sp09.scn +++ b/testsuites/sptests/sp09/sp09.scn @@ -72,7 +72,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 |