Changeset 67d6947 in rtems


Ignore:
Timestamp:
Jul 8, 2009, 5:54:37 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
4b4108a4
Parents:
d6c8b56b
Message:

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

  • sp43/init.c, sp43/sp43.scn: Add more cases for rtems_object_get_class_information() to improve coverage.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rd6c8b56b r67d6947  
     12009-07-08      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * sp43/init.c, sp43/sp43.scn: Add more cases for
     4        rtems_object_get_class_information() to improve coverage.
     5
    162009-07-07      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/sptests/sp43/init.c

    rd6c8b56b r67d6947  
    361361  );
    362362
    363   puts( "rtems_object_get_class_information - INVALID_NUMBER (bad class)" );
    364   status =
    365     rtems_object_get_class_information( OBJECTS_INTERNAL_API, 0, &info );
     363  puts( "rtems_object_get_class_information - INVALID_NUMBER (api=0xff)" );
     364  status = rtems_object_get_class_information( 0xff, 1, &info );
    366365  fatal_directive_status(
    367366    status,
    368367    RTEMS_INVALID_NUMBER,
    369     "rtems_object_get_class_information (API)"
     368    "rtems_object_get_class_information (api=0xff)"
     369  );
     370
     371  puts( "rtems_object_get_class_information - INVALID_NUMBER (class=0)" );
     372  status = rtems_object_get_class_information(
     373    OBJECTS_INTERNAL_API, 0, &info );
     374  fatal_directive_status(
     375    status,
     376    RTEMS_INVALID_NUMBER,
     377    "rtems_object_get_class_information (class=0)"
     378  );
     379
     380  puts(
     381    "rtems_object_get_class_information - INVALID_NUMBER (class too high)" );
     382  status = rtems_object_get_class_information(
     383    OBJECTS_INTERNAL_API, 0xff, &info);
     384  fatal_directive_status(
     385    status,
     386    RTEMS_INVALID_NUMBER,
     387    "rtems_object_get_class_information (class #2)"
    370388  );
    371389
  • testsuites/sptests/sp43/sp43.scn

    rd6c8b56b r67d6947  
    1 
    2 
    31*** TEST 43 ***
    4 RTEMS Version: rtems-4.9.99.0(PowerPC/Generic (classic FPU)/psim)
     2RTEMS Version: rtems-4.9.99.0(SPARC/w/FPU/erc32)
    53rtems_object_get_classic_name - INVALID_ADDRESS
    64rtems_object_get_classic_name - INVALID_ID (bad index)
     
    3331*    - name returned by rtems_object_get_classic_name
    3432rtems_object_get_name returned () for init task
    35 rtems_object_set_name - change name of init task to (0x4e-0x07-0x09-0x31)
     33rtems_object_set_name - change name of init task to (N-0x07-0x09-1)
    3634N**1 - name returned by rtems_object_get_classic_name
    3735rtems_object_get_name returned (N**1) for init task
     
    4947rtems_object_id_api_maximum returned 4
    5048rtems_object_api_minimum_class(0) returned -1
    51 rtems_object_api_maximum_class(0) returned -1
     49rtems_object_api_maximum_class(0) returned 0
    5250rtems_object_api_minimum_class(0) returned -1
    53 rtems_object_api_maximum_class(0) returned -1
     51rtems_object_api_maximum_class(0) returned 0
    5452rtems_object_api_minimum_class(255) returned -1
    55 rtems_object_api_maximum_class(255) returned -1
     53rtems_object_api_maximum_class(255) returned 0
    5654rtems_object_api_minimum_class(OBJECTS_INTERNAL_API) returned 1
    5755rtems_object_api_maximum_class(OBJECTS_INTERNAL_API) returned 2
     
    7371rtems_object_get_class_information - INVALID_ADDRESS
    7472rtems_object_get_class_information - INVALID_NUMBER (bad API)
    75 rtems_object_get_class_information - INVALID_NUMBER (bad class)
     73rtems_object_get_class_information - INVALID_NUMBER (api=0xff)
     74rtems_object_get_class_information - INVALID_NUMBER (class=0)
     75rtems_object_get_class_information - INVALID_NUMBER (class too high)
    7676rtems_object_get_class_information - Classic Tasks - OK
    7777Classic API Task Information
Note: See TracChangeset for help on using the changeset viewer.