From 0e5f4c5d323c54fa3db927f33117a5c6354853ee Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 18 Jul 2022 10:12:22 +0200 Subject: 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(-) (limited to 'testsuites/sptests') 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); } -- cgit v1.2.3