summaryrefslogtreecommitdiffstats
path: root/testsuites/samples
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-12-10 13:44:53 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-12-14 06:57:55 +0100
commit8b0e752fee90af946e0e117ca7d46a7df7814d14 (patch)
tree77a60415e91ce3a513e640b69044ab3628cbf6c0 /testsuites/samples
parentpsxhdrs: Changed the Copyright license to BSD-2-Clause . (diff)
downloadrtems-8b0e752fee90af946e0e117ca7d46a7df7814d14.tar.bz2
score: Remove Objects_Information::auto_extend
Use Objects_Information::objects_per_block to provide this information. Add and use _Objects_Is_auto_extend(). Update #3621.
Diffstat (limited to 'testsuites/samples')
-rw-r--r--testsuites/samples/unlimited/test1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/samples/unlimited/test1.c b/testsuites/samples/unlimited/test1.c
index f02857ce59..a529c71be3 100644
--- a/testsuites/samples/unlimited/test1.c
+++ b/testsuites/samples/unlimited/test1.c
@@ -30,7 +30,7 @@
void test1()
{
- bool auto_extend;
+ Objects_Maximum objects_per_block;
rtems_status_code result;
uint32_t task_count = 0;
Objects_Information *the_information;
@@ -49,8 +49,8 @@ void test1()
the_information =
_Objects_Information_table[OBJECTS_CLASSIC_API][OBJECTS_RTEMS_TASKS];
- auto_extend = the_information->auto_extend;
- the_information->auto_extend = false;
+ objects_per_block = the_information->objects_per_block;
+ the_information->objects_per_block = 0;
while (task_count < MAX_TASKS)
{
@@ -101,7 +101,7 @@ void test1()
destroy_all_tasks("TEST1");
- the_information->auto_extend = auto_extend;
+ the_information->objects_per_block = objects_per_block;
printf( " TEST1 : completed\n" );
}