Revert "objectgetinfo.c: Add test case for API field too high"

This reverts commit 807070a696
This commit is contained in:
Joel Sherrill
2024-07-30 20:33:18 +00:00
parent 4c2e5ad988
commit 30ae3ef9da
3 changed files with 2 additions and 13 deletions

View File

@@ -66,9 +66,6 @@ Objects_Information *_Objects_Get_information(
if ( !_Objects_Information_table[ the_api ] )
return NULL;
if ( the_class > OBJECTS_APIS_LAST )
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
if ( !info )
return NULL;

View File

@@ -378,15 +378,8 @@ rtems_task Init(
);
puts( "rtems_object_get_class_information - INVALID_NUMBER (bad API)" );
sc = rtems_object_get_class_information(0, OBJECTS_INTERNAL_THREADS, &info);
fatal_directive_status(
sc,
RTEMS_INVALID_NUMBER,
"rtems_object_get_class_information (API)"
);
puts( "rtems_object_get_class_information - INVALID_NUMBER (API too high)" );
sc = rtems_object_get_class_information(0, 4, &info);
sc =
rtems_object_get_class_information(0, OBJECTS_INTERNAL_THREADS, &info);
fatal_directive_status(
sc,
RTEMS_INVALID_NUMBER,

View File

@@ -5,7 +5,6 @@ rtems_object_get_classic_name - INVALID_ADDRESS
rtems_object_get_classic_name - INVALID_ID (bad index)
rtems_object_get_classic_name - INVALID_ID (unallocated index)
rtems_object_get_classic_name - INVALID_ID (bad API)
rtems_object_get_classic_name - INVALID_ID (API too high)
UI1 - name returned by rtems_object_get_classic_name for Init task id
UI1 - name returned by rtems_object_get_classic_name for RTEMS_SELF
TEMP - rtems_build_name for TEMP