summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-03 09:19:59 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-04 07:24:30 +0200
commit876dde7a7dc5c44952bea8503b5a45ebf7f5591c (patch)
treed631ffd578e1d9917601b7118e091e0eceb8b56b /testsuites/sptests
parentscore: Simplify _Objects_Id_to_name() (diff)
downloadrtems-876dde7a7dc5c44952bea8503b5a45ebf7f5591c.tar.bz2
score: Make _Objects_Information_table const
The _Objects_Information_table is statically initialized. So, we can make it read-only.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/sp43/init.c35
1 files changed, 0 insertions, 35 deletions
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 );
}