summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-19 14:12:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-21 07:29:40 +0200
commit36cd27c1e3ebb3796fa486cddd36b43b7be4cb6b (patch)
treeef589792781b889c8bf8bee1e46c13815770a575 /testsuites/sptests
parentscore: Simplify _Objects_Initialize_information() (diff)
downloadrtems-36cd27c1e3ebb3796fa486cddd36b43b7be4cb6b.tar.bz2
score: Simplify _Objects_Get_next()
Remove unused location parameter.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/spobjgetnext/init.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/testsuites/sptests/spobjgetnext/init.c b/testsuites/sptests/spobjgetnext/init.c
index c6b8de5a2d..620185c1f3 100644
--- a/testsuites/sptests/spobjgetnext/init.c
+++ b/testsuites/sptests/spobjgetnext/init.c
@@ -35,7 +35,6 @@ int scan_objects(
{
Objects_Control *o[MAX_SCAN];
int i;
- Objects_Locations location;
Objects_Id id;
memset( o, 1, sizeof(o) );
@@ -43,15 +42,12 @@ int scan_objects(
id = start;
for (i=0 ; i<MAX_SCAN ; i++ ) {
o[i] = _Objects_Get_next(
- information,
id,
- &location,
+ information,
&id
);
if ( !o[i] )
break;
- if ( location == OBJECTS_ERROR )
- break;
/* XXX check dispatch level with macros */
/* XXX should be able to check that next Id is not one we have seen */
@@ -66,7 +62,6 @@ rtems_task Init(
rtems_id main_task;
int count;
Objects_Control *o;
- Objects_Locations location;
Objects_Id id;
Objects_Information *info;
Objects_Maximum active_count;
@@ -77,15 +72,12 @@ rtems_task Init(
main_task = rtems_task_self();
puts( "Init - _Objects_Get_next - NULL object information" );
- o = _Objects_Get_next( NULL, main_task, &location, &id );
+ o = _Objects_Get_next( main_task, NULL, &id );
rtems_test_assert( o == NULL );
-
- puts( "Init - _Objects_Get_next - NULL location" );
- o = _Objects_Get_next( info, main_task, NULL, &id );
rtems_test_assert( o == NULL );
puts( "Init - _Objects_Get_next - NULL id" );
- o = _Objects_Get_next( info, main_task, &location, NULL );
+ o = _Objects_Get_next( main_task, info, NULL );
rtems_test_assert( o == NULL );
/* XXX push the three NULL error cases */