Changeset 5ab52fb in rtems


Ignore:
Timestamp:
Mar 2, 2009, 4:13:40 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.8
Children:
d7ad1f6
Parents:
86458b0e
Message:

2009-03-02 Joel Sherrill <joel.sherrill@…>

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.
Location:
testsuites/sptests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r86458b0e r5ab52fb  
     12009-03-02      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        PR 1388/cpukit
     4        * sp09/screen05.c, sp09/screen09.c, sp09/sp09.scn: Classic Semaphores
     5        allow both priority inherit and ceiling attributes to be set on
     6        semaphore create. These attributes are mutually exclusive and this
     7        should be an error.
     8
    192009-01-21      Nickolay Kolchin <nbkolchin@gmail.com>
    210                Joel Sherrill <joel.sherrill@oarcorp.com>
  • testsuites/sptests/sp09/screen05.c

    r86458b0e r5ab52fb  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    8686    "rtems_semaphore_create of RTEMS_FIFO RTEMS_INHERIT_PRIORITY"
    8787  );
    88   puts( "TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED" );
     88  puts( "TA1 - rtems_semaphore_create - FIFO and inherit - RTEMS_NOT_DEFINED" );
     89
     90  status = rtems_semaphore_create(
     91    Semaphore_name[ 1 ],
     92    1,
     93    RTEMS_PRIORITY_CEILING | RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
     94    RTEMS_NO_PRIORITY,
     95    &Junk_id
     96  );
     97  fatal_directive_status(
     98    status,
     99    RTEMS_NOT_DEFINED,
     100    "rtems_semaphore_create of RTEMS_FIFO RTEMS_CEILING_PRIORITY"
     101  );
     102  puts( "TA1 - rtems_semaphore_create - FIFO and ceiling - RTEMS_NOT_DEFINED" );
     103
     104  status = rtems_semaphore_create(
     105    Semaphore_name[ 1 ],
     106    1,
     107    RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY_CEILING |
     108      RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY,
     109    10,
     110    &Junk_id
     111  );
     112  fatal_directive_status(
     113    status,
     114    RTEMS_NOT_DEFINED,
     115    "rtems_semaphore_create of binary with ceiling and inherit"
     116  );
     117  puts(
     118    "TA1 - rtems_semaphore_create - ceiling and inherit - RTEMS_NOT_DEFINED" );
    89119
    90120  status = rtems_semaphore_create(
  • testsuites/sptests/sp09/screen09.c

    r86458b0e r5ab52fb  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
  • testsuites/sptests/sp09/sp09.scn

    r86458b0e r5ab52fb  
    6868TA1 - rtems_semaphore_create - 2 - RTEMS_SUCCESSFUL
    6969TA1 - rtems_semaphore_create - 3 - RTEMS_TOO_MANY
    70 TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
     70TA1 - rtems_semaphore_create - FIFO and inherit - RTEMS_NOT_DEFINED
     71TA1 - rtems_semaphore_create - FIFO and ceiling - RTEMS_NOT_DEFINED
     72TA1 - rtems_semaphore_create - ceiling and inherit - RTEMS_NOT_DEFINED
    7173TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
    7274TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER
Note: See TracChangeset for help on using the changeset viewer.