summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spobjgetnext/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spobjgetnext/init.c')
-rw-r--r--testsuites/sptests/spobjgetnext/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuites/sptests/spobjgetnext/init.c b/testsuites/sptests/spobjgetnext/init.c
index 9682c346fe..2695190239 100644
--- a/testsuites/sptests/spobjgetnext/init.c
+++ b/testsuites/sptests/spobjgetnext/init.c
@@ -108,7 +108,9 @@ rtems_task Init(
/* XXX try with a manager with no objects created */
puts( "Init - _Objects_Active_count" );
+ _Objects_Allocator_lock();
active_count = _Objects_Active_count( info );
+ _Objects_Allocator_unlock();
rtems_test_assert( active_count == 1 );
TEST_END();