Changeset 15fa865 in rtems


Ignore:
Timestamp:
Mar 2, 2009, 4:13:08 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.9
Children:
66c25d4
Parents:
fe91be3
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

    rfe91be3 r15fa865  
     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

    rfe91be3 r15fa865  
    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

    rfe91be3 r15fa865  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    2424  rtems_status_code status;
    2525  rtems_isr_entry   old_service_routine;
    26 
    27 #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
    28   puts( "TRUE" );
    29 #else
    30   puts( "FALSE" );
    31 #endif
    3226
    3327  #if ((CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE) || \
  • testsuites/sptests/sp09/sp09.scn

    rfe91be3 r15fa865  
    7373TA1 - rtems_semaphore_create - 2 - RTEMS_SUCCESSFUL
    7474TA1 - rtems_semaphore_create - 3 - RTEMS_TOO_MANY
    75 TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
     75TA1 - rtems_semaphore_create - FIFO and inherit - RTEMS_NOT_DEFINED
     76TA1 - rtems_semaphore_create - FIFO and ceiling - RTEMS_NOT_DEFINED
     77TA1 - rtems_semaphore_create - ceiling and inherit - RTEMS_NOT_DEFINED
    7678TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
    7779TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER
Note: See TracChangeset for help on using the changeset viewer.