forked from Imagelibrary/rtems
score: Add _Objects_Active_count()
This commit is contained in:
@@ -68,6 +68,7 @@ rtems_task Init(
|
||||
Objects_Locations location;
|
||||
Objects_Id id;
|
||||
Objects_Information *info;
|
||||
Objects_Maximum active_count;
|
||||
|
||||
puts( "\n\n*** TEST OBJECT GET NEXT ***" );
|
||||
|
||||
@@ -103,6 +104,10 @@ rtems_task Init(
|
||||
|
||||
/* XXX try with a manager with no objects created */
|
||||
|
||||
puts( "Init - _Objects_Active_count" );
|
||||
active_count = _Objects_Active_count( info );
|
||||
rtems_test_assert( active_count == 1 );
|
||||
|
||||
puts( "*** END OF TEST OBJECT GET NEXT ***" );
|
||||
rtems_test_exit( 0 );
|
||||
}
|
||||
|
||||
@@ -12,10 +12,13 @@ test set name: spobjgetnext
|
||||
|
||||
directives:
|
||||
|
||||
SCORE _Objects_Get_next
|
||||
_Objects_Get_next
|
||||
_Objects_Active_count
|
||||
|
||||
concepts:
|
||||
|
||||
+ Ensure that _Objects_Get_next handles error conditions properly.
|
||||
|
||||
+ Ensure the _Objects_Get_next behaves as expected.
|
||||
|
||||
+ Ensure the _Objects_Active_count behaves as expected.
|
||||
|
||||
@@ -4,4 +4,5 @@ Init - _Objects_Get_next - NULL location
|
||||
Init - _Objects_Get_next - NULL id
|
||||
1 RTEMS Task
|
||||
1 RTEMS Task
|
||||
Init - _Objects_Active_count
|
||||
*** END OF TEST OBJECT GET NEXT ***
|
||||
|
||||
Reference in New Issue
Block a user