diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-18 10:12:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-18 15:52:20 +0200 |
commit | 0e5f4c5d323c54fa3db927f33117a5c6354853ee (patch) | |
tree | 207ff36e700f6fdbe6e85ef5be81a13bee95f1a0 | |
parent | 12a03bea4f936f6305869b43f9c0a5f1473213e9 (diff) |
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.
-rw-r--r-- | testsuites/sptests/spsysinit01/init.c | 4 |
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); } |