Changeset 6c2b8a4b in rtems for testsuites


Ignore:
Timestamp:
Nov 29, 2017, 5:23:27 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
fd5471b
Parents:
3d7d2a37
git-author:
Sebastian Huber <sebastian.huber@…> (11/29/17 05:23:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/04/17 09:53:39)
Message:

score: Use self-contained API mutex

Use a self-contained recursive mutex for API_Mutex_Control. The API
mutexes are protected against asynchronous thread cancellation.

Add dedicated mutexes for libatomic and TOD.

Close #2629.
Close #2630.

Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp43/init.c

    r3d7d2a37 r6c2b8a4b  
    348348  printf( "rtems_object_get_api_class_name(CLASSIC_API, 0) = %s\n",
    349349    rtems_object_get_api_class_name( OBJECTS_CLASSIC_API, 0 ) );
    350   printf("rtems_object_get_api_class_name(INTERNAL_API, MUTEXES) = %s\n",
     350  printf("rtems_object_get_api_class_name(INTERNAL_API, THREADS) = %s\n",
    351351    rtems_object_get_api_class_name(
    352        OBJECTS_INTERNAL_API, OBJECTS_INTERNAL_MUTEXES));
     352       OBJECTS_INTERNAL_API, OBJECTS_INTERNAL_THREADS));
    353353  printf("rtems_object_get_api_class_name(CLASSIC_API, RTEMS_BARRIERS) = %s\n",
    354354    rtems_object_get_api_class_name(
  • testsuites/sptests/sp43/sp43.scn

    r3d7d2a37 r6c2b8a4b  
    11*** BEGIN OF TEST SP 43 ***
    2 RTEMS Version: rtems-4.11.99.0(SPARC/w/FPU/sis)
     2RTEMS Version: rtems-5.0.0 (SPARC/w/FPU/erc32)
    33rtems_object_get_classic_name - INVALID_ADDRESS
    44rtems_object_get_classic_name - INVALID_ID (bad index)
     
    5454rtems_object_api_maximum_class(255) returned 0
    5555rtems_object_api_minimum_class(OBJECTS_INTERNAL_API) returned 1
    56 rtems_object_api_maximum_class(OBJECTS_INTERNAL_API) returned 2
     56rtems_object_api_maximum_class(OBJECTS_INTERNAL_API) returned 1
    5757rtems_object_api_minimum_class(OBJECTS_CLASSIC_API) returned 1
    5858rtems_object_api_maximum_class(OBJECTS_CLASSIC_API) returned 10
     
    6464rtems_object_get_api_class_name(0, RTEMS_TASKS) = BAD API
    6565rtems_object_get_api_class_name(CLASSIC_API, 0) = BAD CLASS
    66 rtems_object_get_api_class_name(INTERNAL_API, MUTEXES) = Mutex
     66rtems_object_get_api_class_name(INTERNAL_API, THREADS) = Thread
    6767rtems_object_get_api_class_name(CLASSIC_API, RTEMS_BARRIERS) = Barrier
    6868<pause>
     
    8383    auto_extend : no
    8484rtems_task_set_priority - use valid Idle thread id
    85 rtems_task_set_priority - clobber internal API info
    86 rtems_task_set_priority - use valid Idle thread id again
    87 rtems_task_set_priority - restore internal api info
    8885rtems_task_set_priority - clobber internal thread class info
    8986rtems_task_set_priority - use valid Idle thread id again
     
    9188rtems_task_set_priority - restore internal thread class info
    9289rtems_semaphore_obtain - good but uncreated ID - INVALID_ID - OK
    93 rtems_object_get_classic_name - bad API pointer - INVALID_ID
     90
    9491*** END OF TEST SP 43 ***
  • testsuites/sptests/spsysinit01/init.c

    r3d7d2a37 r6c2b8a4b  
    233233FIRST(RTEMS_SYSINIT_DATA_STRUCTURES)
    234234{
    235   assert(_RTEMS_Allocator_Mutex == NULL);
     235  assert(_Thread_Internal_information.Objects.maximum == 0);
    236236  next_step(DATA_STRUCTURES_PRE);
    237237}
     
    239239LAST(RTEMS_SYSINIT_DATA_STRUCTURES)
    240240{
    241   assert(_RTEMS_Allocator_Mutex != NULL);
     241  assert(_Thread_Internal_information.Objects.maximum != 0);
    242242  next_step(DATA_STRUCTURES_POST);
    243243}
Note: See TracChangeset for help on using the changeset viewer.