Changeset 6afc8dd in rtems


Ignore:
Timestamp:
Jul 7, 2009, 7:39:12 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
2204f52
Parents:
0dbc0c33
Message:

2009-07-07 Joel Sherrill <joel.sherrill@…>

  • sp09/screen01.c, sp09/sp09.scn: Add test for rtems_object_get_classic_name with invalid id.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r0dbc0c33 r6afc8dd  
     12009-07-07      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * sp09/screen01.c, sp09/sp09.scn: Add test for
     4        rtems_object_get_classic_name with invalid id.
     5
    162009-07-07      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/sptests/sp09/screen01.c

    r0dbc0c33 r6afc8dd  
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-2008.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    2121void Screen1()
    2222{
    23   uint32_t      notepad_value;
     23  uint32_t            notepad_value;
     24  rtems_name          task_name;
    2425  rtems_id            self_id;
    2526  rtems_task_priority previous_priority;
     
    9495  );
    9596
     97  puts( "TA1 - rtems_object_get_classic_name - bad ID" );
     98  status = rtems_object_get_classic_name(
     99    rtems_build_id( OBJECTS_ITRON_API, OBJECTS_ITRON_TASKS, 1, 1 ),
     100    &task_name
     101  );
     102  fatal_directive_status( status, RTEMS_INVALID_ID,
     103    "rtems_object_get_classic_name with no tasks in API"
     104  );
     105
    96106  status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &self_id );
    97107  directive_failed( status, "rtems_task_ident of self" );
    98 
    99108  if ( self_id != Task_id[ 1 ] ) {
    100109    puts( "ERROR - rtems_task_ident - incorrect ID returned!" );
  • testsuites/sptests/sp09/sp09.scn

    r0dbc0c33 r6afc8dd  
    77TA1 - rtems_task_get_note - RTEMS_INVALID_ID
    88TA1 - rtems_task_get_note - RTEMS_INVALID_ID (no tasks in API)
     9TA1 - rtems_object_get_classic_name - bad ID
    910TA1 - rtems_task_ident - current task RTEMS_SUCCESSFUL
    1011TA1 - rtems_task_ident - global RTEMS_INVALID_NAME
Note: See TracChangeset for help on using the changeset viewer.