Changeset ec6a5a1 in rtems


Ignore:
Timestamp:
Jul 27, 2010, 9:25:02 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
c838e2f4
Parents:
5b50781
Message:

2010-07-27 Joel Sherrill <joel.sherrilL@…>

  • sp43/init.c, sp43/sp43.scn: Add code to exercise case where an API pointer is NULL when getting an object name.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r5b50781 rec6a5a1  
     12010-07-27      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * sp43/init.c, sp43/sp43.scn: Add code to exercise case where an API
     4        pointer is NULL when getting an object name.
     5
    162010-07-27      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • testsuites/sptests/sp43/init.c

    r5b50781 rec6a5a1  
    474474  fatal_directive_status( sc, RTEMS_INVALID_ID, "rtems_semaphore_obtain" );
    475475
     476  /*
     477   * Invalid POSIX API pointer on get name
     478   */
     479  {
     480    void *tmp;
     481    tmp = _Objects_Information_table[OBJECTS_POSIX_API];
     482    _Objects_Information_table[OBJECTS_POSIX_API] = NULL;
     483
     484    puts( "rtems_object_get_classic_name - bad API pointer - INVALID_ID" );
     485    sc = rtems_object_get_classic_name(
     486      rtems_build_id( OBJECTS_POSIX_API, OBJECTS_POSIX_THREADS, 1, 1 ),
     487      &tmpName
     488    );
     489    fatal_directive_status( sc, RTEMS_INVALID_ID, "object_get_classic_name" );
     490
     491    _Objects_Information_table[OBJECTS_POSIX_API] = tmp;
     492  }
     493
    476494  puts( "*** END OF TEST 43 ***" );
    477495  rtems_test_exit( 0 );
  • testsuites/sptests/sp43/sp43.scn

    r5b50781 rec6a5a1  
    8686rtems_task_set_priority - restore internal thread class info
    8787rtems_semaphore_obtain - good but uncreated ID - INVALID_ID - OK
     88rtems_object_get_classic_name - bad API pointer - INVALID_ID
    8889*** END OF TEST 43 ***
Note: See TracChangeset for help on using the changeset viewer.