[rtems commit] spsysinit01: Account for use of .noinit section
Sebastian Huber
sebh at rtems.org
Mon Jul 18 13:45:00 UTC 2022
Module: rtems
Branch: master
Commit: 0e5f4c5d323c54fa3db927f33117a5c6354853ee
Changeset: http://git.rtems.org/rtems/commit/?id=0e5f4c5d323c54fa3db927f33117a5c6354853ee
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Jul 18 10:12:22 2022 +0200
spsysinit01: Account for use of .noinit section
The objects control blocks cannot be used to check the pre-initialization state
since they are allocated in a .noinit section.
Update #4678.
---
testsuites/sptests/spsysinit01/init.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testsuites/sptests/spsysinit01/init.c b/testsuites/sptests/spsysinit01/init.c
index 0d5a1f0020..1f7c1ada25 100644
--- a/testsuites/sptests/spsysinit01/init.c
+++ b/testsuites/sptests/spsysinit01/init.c
@@ -341,13 +341,13 @@ LAST(RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE)
FIRST(RTEMS_SYSINIT_CLASSIC_SEMAPHORE)
{
- assert(_Semaphore_Information.initial_objects[0].id == 0);
+ assert(info_not_init(&_Semaphore_Information));
next_step(CLASSIC_SEMAPHORE_PRE);
}
LAST(RTEMS_SYSINIT_CLASSIC_SEMAPHORE)
{
- assert(_Semaphore_Information.initial_objects[0].id != 0);
+ assert(info_is_init(&_Semaphore_Information, 1));
next_step(CLASSIC_SEMAPHORE_POST);
}
More information about the vc
mailing list