summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-18 10:12:22 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-18 15:52:20 +0200
commit0e5f4c5d323c54fa3db927f33117a5c6354853ee (patch)
tree207ff36e700f6fdbe6e85ef5be81a13bee95f1a0 /testsuites/sptests
parentscore: Fix unlimited objects support (diff)
downloadrtems-0e5f4c5d323c54fa3db927f33117a5c6354853ee.tar.bz2
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.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/spsysinit01/init.c4
1 files 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);
}