From 876dde7a7dc5c44952bea8503b5a45ebf7f5591c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 3 May 2016 09:19:59 +0200 Subject: score: Make _Objects_Information_table const The _Objects_Information_table is statically initialized. So, we can make it read-only. --- testsuites/sptests/sp43/init.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'testsuites/sptests') diff --git a/testsuites/sptests/sp43/init.c b/testsuites/sptests/sp43/init.c index 03fe5a5958..a0025353ec 100644 --- a/testsuites/sptests/sp43/init.c +++ b/testsuites/sptests/sp43/init.c @@ -448,23 +448,6 @@ rtems_task Init( ); directive_failed( sc, "rtems_task_set_priority" ); - /* destroy internal API pointer */ - puts( "rtems_task_set_priority - clobber internal API info" ); - tmp = _Objects_Information_table[ api ]; - _Objects_Information_table[ api ] = NULL; - - puts( "rtems_task_set_priority - use valid Idle thread id again" ); - sc = rtems_task_set_priority( - rtems_build_id( class, api, 1, 1 ), - RTEMS_CURRENT_PRIORITY, - &old_priority - ); - fatal_directive_status( sc, RTEMS_INVALID_ID, "rtems_task_set_priority" ); - - /* restore pointer */ - puts( "rtems_task_set_priority - restore internal api info" ); - _Objects_Information_table[ api ] = tmp; - /* destroy internal API thread class pointer */ puts( "rtems_task_set_priority - clobber internal thread class info" ); tmp = _Objects_Information_table[ api ][ class ]; @@ -510,24 +493,6 @@ rtems_task Init( ); fatal_directive_status( sc, RTEMS_INVALID_ID, "rtems_semaphore_obtain" ); - /* - * Invalid POSIX API pointer on get name - */ - { - void *tmp; - tmp = _Objects_Information_table[OBJECTS_POSIX_API]; - _Objects_Information_table[OBJECTS_POSIX_API] = NULL; - - puts( "rtems_object_get_classic_name - bad API pointer - INVALID_ID" ); - sc = rtems_object_get_classic_name( - rtems_build_id( OBJECTS_POSIX_API, OBJECTS_POSIX_THREADS, 1, 1 ), - &tmpName - ); - fatal_directive_status( sc, RTEMS_INVALID_ID, "object_get_classic_name" ); - - _Objects_Information_table[OBJECTS_POSIX_API] = tmp; - } - TEST_END(); rtems_test_exit( 0 ); } -- cgit v1.2.3